@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getServiceRoleArn() == null) ? 0 : getServiceRoleArn().hashCode()); hashCode = prime * hashCode + ((getDefaultInstanceProfileArn() == null) ? 0 : getDefaultInstanceProfileArn().hashCode()); hashCode = prime * hashCode + ((getDefaultOs() == null) ? 0 : getDefaultOs().hashCode()); hashCode = prime * hashCode + ((getHostnameTheme() == null) ? 0 : getHostnameTheme().hashCode()); hashCode = prime * hashCode + ((getDefaultAvailabilityZone() == null) ? 0 : getDefaultAvailabilityZone().hashCode()); hashCode = prime * hashCode + ((getDefaultSubnetId() == null) ? 0 : getDefaultSubnetId().hashCode()); hashCode = prime * hashCode + ((getCustomJson() == null) ? 0 : getCustomJson().hashCode()); hashCode = prime * hashCode + ((getConfigurationManager() == null) ? 0 : getConfigurationManager().hashCode()); hashCode = prime * hashCode + ((getChefConfiguration() == null) ? 0 : getChefConfiguration().hashCode()); hashCode = prime * hashCode + ((getUseCustomCookbooks() == null) ? 0 : getUseCustomCookbooks().hashCode()); hashCode = prime * hashCode + ((getUseOpsworksSecurityGroups() == null) ? 0 : getUseOpsworksSecurityGroups().hashCode()); hashCode = prime * hashCode + ((getCustomCookbooksSource() == null) ? 0 : getCustomCookbooksSource().hashCode()); hashCode = prime * hashCode + ((getDefaultSshKeyName() == null) ? 0 : getDefaultSshKeyName().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getDefaultRootDeviceType() == null) ? 0 : getDefaultRootDeviceType().hashCode()); hashCode = prime * hashCode + ((getAgentVersion() == null) ? 0 : getAgentVersion().hashCode()); return hashCode; }
public Stack unmarshall(JsonUnmarshallerContext context) throws Exception { Stack stack = new Stack(); if (context.testExpression("StackId", targetDepth)) { context.nextToken(); stack.setStackId(context.getUnmarshaller(String.class).unmarshall(context)); stack.setName(context.getUnmarshaller(String.class).unmarshall(context)); stack.setArn(context.getUnmarshaller(String.class).unmarshall(context)); stack.setRegion(context.getUnmarshaller(String.class).unmarshall(context)); stack.setVpcId(context.getUnmarshaller(String.class).unmarshall(context)); stack.setAttributes(new MapUnmarshaller<String, String>(context.getUnmarshaller(String.class), context.getUnmarshaller(String.class)) .unmarshall(context)); stack.setServiceRoleArn(context.getUnmarshaller(String.class).unmarshall(context)); stack.setDefaultInstanceProfileArn(context.getUnmarshaller(String.class).unmarshall(context)); stack.setDefaultOs(context.getUnmarshaller(String.class).unmarshall(context)); stack.setHostnameTheme(context.getUnmarshaller(String.class).unmarshall(context)); stack.setDefaultAvailabilityZone(context.getUnmarshaller(String.class).unmarshall(context)); stack.setDefaultSubnetId(context.getUnmarshaller(String.class).unmarshall(context));
public Stack unmarshall(JsonUnmarshallerContext context) throws Exception { Stack stack = new Stack(); if (context.testExpression("StackId", targetDepth)) { context.nextToken(); stack.setStackId(context.getUnmarshaller(String.class).unmarshall(context)); stack.setName(context.getUnmarshaller(String.class).unmarshall(context)); stack.setArn(context.getUnmarshaller(String.class).unmarshall(context)); stack.setRegion(context.getUnmarshaller(String.class).unmarshall(context)); stack.setVpcId(context.getUnmarshaller(String.class).unmarshall(context)); stack.setAttributes(new MapUnmarshaller<String, String>(context.getUnmarshaller(String.class), context.getUnmarshaller(String.class)) .unmarshall(context)); stack.setServiceRoleArn(context.getUnmarshaller(String.class).unmarshall(context)); stack.setDefaultInstanceProfileArn(context.getUnmarshaller(String.class).unmarshall(context)); stack.setDefaultOs(context.getUnmarshaller(String.class).unmarshall(context)); stack.setHostnameTheme(context.getUnmarshaller(String.class).unmarshall(context)); stack.setDefaultAvailabilityZone(context.getUnmarshaller(String.class).unmarshall(context)); stack.setDefaultSubnetId(context.getUnmarshaller(String.class).unmarshall(context));
return false; Stack other = (Stack) obj; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getVpcId() == null ^ this.getVpcId() == null) return false; if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getServiceRoleArn() == null ^ this.getServiceRoleArn() == null) return false; if (other.getServiceRoleArn() != null && other.getServiceRoleArn().equals(this.getServiceRoleArn()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getVpcId() != null) sb.append("VpcId: ").append(getVpcId()).append(","); if (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getServiceRoleArn() != null) sb.append("ServiceRoleArn: ").append(getServiceRoleArn()).append(","); if (getDefaultInstanceProfileArn() != null) sb.append("DefaultInstanceProfileArn: ").append(getDefaultInstanceProfileArn()).append(","); if (getDefaultOs() != null) sb.append("DefaultOs: ").append(getDefaultOs()).append(","); if (getHostnameTheme() != null) sb.append("HostnameTheme: ").append(getHostnameTheme()).append(","); if (getDefaultAvailabilityZone() != null) sb.append("DefaultAvailabilityZone: ").append(getDefaultAvailabilityZone()).append(","); if (getDefaultSubnetId() != null) sb.append("DefaultSubnetId: ").append(getDefaultSubnetId()).append(","); if (getCustomJson() != null) sb.append("CustomJson: ").append(getCustomJson()).append(","); if (getConfigurationManager() != null)
protocolMarshaller.marshall(stack.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(stack.getName(), NAME_BINDING); protocolMarshaller.marshall(stack.getArn(), ARN_BINDING); protocolMarshaller.marshall(stack.getRegion(), REGION_BINDING); protocolMarshaller.marshall(stack.getVpcId(), VPCID_BINDING); protocolMarshaller.marshall(stack.getAttributes(), ATTRIBUTES_BINDING); protocolMarshaller.marshall(stack.getServiceRoleArn(), SERVICEROLEARN_BINDING); protocolMarshaller.marshall(stack.getDefaultInstanceProfileArn(), DEFAULTINSTANCEPROFILEARN_BINDING); protocolMarshaller.marshall(stack.getDefaultOs(), DEFAULTOS_BINDING); protocolMarshaller.marshall(stack.getHostnameTheme(), HOSTNAMETHEME_BINDING); protocolMarshaller.marshall(stack.getDefaultAvailabilityZone(), DEFAULTAVAILABILITYZONE_BINDING); protocolMarshaller.marshall(stack.getDefaultSubnetId(), DEFAULTSUBNETID_BINDING); protocolMarshaller.marshall(stack.getCustomJson(), CUSTOMJSON_BINDING); protocolMarshaller.marshall(stack.getConfigurationManager(), CONFIGURATIONMANAGER_BINDING); protocolMarshaller.marshall(stack.getChefConfiguration(), CHEFCONFIGURATION_BINDING); protocolMarshaller.marshall(stack.getUseCustomCookbooks(), USECUSTOMCOOKBOOKS_BINDING); protocolMarshaller.marshall(stack.getUseOpsworksSecurityGroups(), USEOPSWORKSSECURITYGROUPS_BINDING); protocolMarshaller.marshall(stack.getCustomCookbooksSource(), CUSTOMCOOKBOOKSSOURCE_BINDING); protocolMarshaller.marshall(stack.getDefaultSshKeyName(), DEFAULTSSHKEYNAME_BINDING); protocolMarshaller.marshall(stack.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(stack.getDefaultRootDeviceType(), DEFAULTROOTDEVICETYPE_BINDING); protocolMarshaller.marshall(stack.getAgentVersion(), AGENTVERSION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getStackId() == null) ? 0 : getStackId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); hashCode = prime * hashCode + ((getAttributes() == null) ? 0 : getAttributes().hashCode()); hashCode = prime * hashCode + ((getServiceRoleArn() == null) ? 0 : getServiceRoleArn().hashCode()); hashCode = prime * hashCode + ((getDefaultInstanceProfileArn() == null) ? 0 : getDefaultInstanceProfileArn().hashCode()); hashCode = prime * hashCode + ((getDefaultOs() == null) ? 0 : getDefaultOs().hashCode()); hashCode = prime * hashCode + ((getHostnameTheme() == null) ? 0 : getHostnameTheme().hashCode()); hashCode = prime * hashCode + ((getDefaultAvailabilityZone() == null) ? 0 : getDefaultAvailabilityZone().hashCode()); hashCode = prime * hashCode + ((getDefaultSubnetId() == null) ? 0 : getDefaultSubnetId().hashCode()); hashCode = prime * hashCode + ((getCustomJson() == null) ? 0 : getCustomJson().hashCode()); hashCode = prime * hashCode + ((getConfigurationManager() == null) ? 0 : getConfigurationManager().hashCode()); hashCode = prime * hashCode + ((getChefConfiguration() == null) ? 0 : getChefConfiguration().hashCode()); hashCode = prime * hashCode + ((getUseCustomCookbooks() == null) ? 0 : getUseCustomCookbooks().hashCode()); hashCode = prime * hashCode + ((getUseOpsworksSecurityGroups() == null) ? 0 : getUseOpsworksSecurityGroups().hashCode()); hashCode = prime * hashCode + ((getCustomCookbooksSource() == null) ? 0 : getCustomCookbooksSource().hashCode()); hashCode = prime * hashCode + ((getDefaultSshKeyName() == null) ? 0 : getDefaultSshKeyName().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getDefaultRootDeviceType() == null) ? 0 : getDefaultRootDeviceType().hashCode()); hashCode = prime * hashCode + ((getAgentVersion() == null) ? 0 : getAgentVersion().hashCode()); return hashCode; }
return false; Stack other = (Stack) obj; if (other.getStackId() == null ^ this.getStackId() == null) return false; if (other.getStackId() != null && other.getStackId().equals(this.getStackId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getVpcId() == null ^ this.getVpcId() == null) return false; if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false) return false; if (other.getAttributes() == null ^ this.getAttributes() == null) return false; if (other.getAttributes() != null && other.getAttributes().equals(this.getAttributes()) == false) return false; if (other.getServiceRoleArn() == null ^ this.getServiceRoleArn() == null) return false; if (other.getServiceRoleArn() != null && other.getServiceRoleArn().equals(this.getServiceRoleArn()) == false)
StringBuilder sb = new StringBuilder(); sb.append("{"); if (getStackId() != null) sb.append("StackId: ").append(getStackId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getVpcId() != null) sb.append("VpcId: ").append(getVpcId()).append(","); if (getAttributes() != null) sb.append("Attributes: ").append(getAttributes()).append(","); if (getServiceRoleArn() != null) sb.append("ServiceRoleArn: ").append(getServiceRoleArn()).append(","); if (getDefaultInstanceProfileArn() != null) sb.append("DefaultInstanceProfileArn: ").append(getDefaultInstanceProfileArn()).append(","); if (getDefaultOs() != null) sb.append("DefaultOs: ").append(getDefaultOs()).append(","); if (getHostnameTheme() != null) sb.append("HostnameTheme: ").append(getHostnameTheme()).append(","); if (getDefaultAvailabilityZone() != null) sb.append("DefaultAvailabilityZone: ").append(getDefaultAvailabilityZone()).append(","); if (getDefaultSubnetId() != null) sb.append("DefaultSubnetId: ").append(getDefaultSubnetId()).append(","); if (getCustomJson() != null) sb.append("CustomJson: ").append(getCustomJson()).append(","); if (getConfigurationManager() != null)
protocolMarshaller.marshall(stack.getStackId(), STACKID_BINDING); protocolMarshaller.marshall(stack.getName(), NAME_BINDING); protocolMarshaller.marshall(stack.getArn(), ARN_BINDING); protocolMarshaller.marshall(stack.getRegion(), REGION_BINDING); protocolMarshaller.marshall(stack.getVpcId(), VPCID_BINDING); protocolMarshaller.marshall(stack.getAttributes(), ATTRIBUTES_BINDING); protocolMarshaller.marshall(stack.getServiceRoleArn(), SERVICEROLEARN_BINDING); protocolMarshaller.marshall(stack.getDefaultInstanceProfileArn(), DEFAULTINSTANCEPROFILEARN_BINDING); protocolMarshaller.marshall(stack.getDefaultOs(), DEFAULTOS_BINDING); protocolMarshaller.marshall(stack.getHostnameTheme(), HOSTNAMETHEME_BINDING); protocolMarshaller.marshall(stack.getDefaultAvailabilityZone(), DEFAULTAVAILABILITYZONE_BINDING); protocolMarshaller.marshall(stack.getDefaultSubnetId(), DEFAULTSUBNETID_BINDING); protocolMarshaller.marshall(stack.getCustomJson(), CUSTOMJSON_BINDING); protocolMarshaller.marshall(stack.getConfigurationManager(), CONFIGURATIONMANAGER_BINDING); protocolMarshaller.marshall(stack.getChefConfiguration(), CHEFCONFIGURATION_BINDING); protocolMarshaller.marshall(stack.getUseCustomCookbooks(), USECUSTOMCOOKBOOKS_BINDING); protocolMarshaller.marshall(stack.getUseOpsworksSecurityGroups(), USEOPSWORKSSECURITYGROUPS_BINDING); protocolMarshaller.marshall(stack.getCustomCookbooksSource(), CUSTOMCOOKBOOKSSOURCE_BINDING); protocolMarshaller.marshall(stack.getDefaultSshKeyName(), DEFAULTSSHKEYNAME_BINDING); protocolMarshaller.marshall(stack.getCreatedAt(), CREATEDAT_BINDING); protocolMarshaller.marshall(stack.getDefaultRootDeviceType(), DEFAULTROOTDEVICETYPE_BINDING); protocolMarshaller.marshall(stack.getAgentVersion(), AGENTVERSION_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e);