@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IamInstanceProfileSpecification == false) return false; IamInstanceProfileSpecification other = (IamInstanceProfileSpecification) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; return true; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()); sb.append("}"); return sb.toString(); }
public Request<ReplaceIamInstanceProfileAssociationRequest> marshall(ReplaceIamInstanceProfileAssociationRequest replaceIamInstanceProfileAssociationRequest) { if (replaceIamInstanceProfileAssociationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ReplaceIamInstanceProfileAssociationRequest> request = new DefaultRequest<ReplaceIamInstanceProfileAssociationRequest>( replaceIamInstanceProfileAssociationRequest, "AmazonEC2"); request.addParameter("Action", "ReplaceIamInstanceProfileAssociation"); request.addParameter("Version", "2016-11-15"); request.setHttpMethod(HttpMethodName.POST); IamInstanceProfileSpecification iamInstanceProfile = replaceIamInstanceProfileAssociationRequest.getIamInstanceProfile(); if (iamInstanceProfile != null) { if (iamInstanceProfile.getArn() != null) { request.addParameter("IamInstanceProfile.Arn", StringUtils.fromString(iamInstanceProfile.getArn())); } if (iamInstanceProfile.getName() != null) { request.addParameter("IamInstanceProfile.Name", StringUtils.fromString(iamInstanceProfile.getName())); } } if (replaceIamInstanceProfileAssociationRequest.getAssociationId() != null) { request.addParameter("AssociationId", StringUtils.fromString(replaceIamInstanceProfileAssociationRequest.getAssociationId())); } return request; }
public Request<AssociateIamInstanceProfileRequest> marshall(AssociateIamInstanceProfileRequest associateIamInstanceProfileRequest) { if (associateIamInstanceProfileRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<AssociateIamInstanceProfileRequest> request = new DefaultRequest<AssociateIamInstanceProfileRequest>(associateIamInstanceProfileRequest, "AmazonEC2"); request.addParameter("Action", "AssociateIamInstanceProfile"); request.addParameter("Version", "2016-11-15"); request.setHttpMethod(HttpMethodName.POST); IamInstanceProfileSpecification iamInstanceProfile = associateIamInstanceProfileRequest.getIamInstanceProfile(); if (iamInstanceProfile != null) { if (iamInstanceProfile.getArn() != null) { request.addParameter("IamInstanceProfile.Arn", StringUtils.fromString(iamInstanceProfile.getArn())); } if (iamInstanceProfile.getName() != null) { request.addParameter("IamInstanceProfile.Name", StringUtils.fromString(iamInstanceProfile.getName())); } } if (associateIamInstanceProfileRequest.getInstanceId() != null) { request.addParameter("InstanceId", StringUtils.fromString(associateIamInstanceProfileRequest.getInstanceId())); } return request; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IamInstanceProfileSpecification == false) return false; IamInstanceProfileSpecification other = (IamInstanceProfileSpecification)obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; return true; }
/** * Returns a string representation of this object; useful for testing and * debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getArn() != null) sb.append("Arn: " + getArn() + ","); if (getName() != null) sb.append("Name: " + getName() ); sb.append("}"); return sb.toString(); }
.getIamProfile() .toIamInstanceProfileSpecification() .getName() ); Assert.assertEquals(
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof IamInstanceProfileSpecification == false) return false; IamInstanceProfileSpecification other = (IamInstanceProfileSpecification) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; return true; }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getName() != null) sb.append("Name: ").append(getName()); sb.append("}"); return sb.toString(); }
public Request<ReplaceIamInstanceProfileAssociationRequest> marshall(ReplaceIamInstanceProfileAssociationRequest replaceIamInstanceProfileAssociationRequest) { if (replaceIamInstanceProfileAssociationRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<ReplaceIamInstanceProfileAssociationRequest> request = new DefaultRequest<ReplaceIamInstanceProfileAssociationRequest>( replaceIamInstanceProfileAssociationRequest, "AmazonEC2"); request.addParameter("Action", "ReplaceIamInstanceProfileAssociation"); request.addParameter("Version", "2016-11-15"); request.setHttpMethod(HttpMethodName.POST); IamInstanceProfileSpecification iamInstanceProfile = replaceIamInstanceProfileAssociationRequest.getIamInstanceProfile(); if (iamInstanceProfile != null) { if (iamInstanceProfile.getArn() != null) { request.addParameter("IamInstanceProfile.Arn", StringUtils.fromString(iamInstanceProfile.getArn())); } if (iamInstanceProfile.getName() != null) { request.addParameter("IamInstanceProfile.Name", StringUtils.fromString(iamInstanceProfile.getName())); } } if (replaceIamInstanceProfileAssociationRequest.getAssociationId() != null) { request.addParameter("AssociationId", StringUtils.fromString(replaceIamInstanceProfileAssociationRequest.getAssociationId())); } return request; }
public Request<AssociateIamInstanceProfileRequest> marshall(AssociateIamInstanceProfileRequest associateIamInstanceProfileRequest) { if (associateIamInstanceProfileRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<AssociateIamInstanceProfileRequest> request = new DefaultRequest<AssociateIamInstanceProfileRequest>(associateIamInstanceProfileRequest, "AmazonEC2"); request.addParameter("Action", "AssociateIamInstanceProfile"); request.addParameter("Version", "2016-11-15"); request.setHttpMethod(HttpMethodName.POST); IamInstanceProfileSpecification iamInstanceProfile = associateIamInstanceProfileRequest.getIamInstanceProfile(); if (iamInstanceProfile != null) { if (iamInstanceProfile.getArn() != null) { request.addParameter("IamInstanceProfile.Arn", StringUtils.fromString(iamInstanceProfile.getArn())); } if (iamInstanceProfile.getName() != null) { request.addParameter("IamInstanceProfile.Name", StringUtils.fromString(iamInstanceProfile.getName())); } } if (associateIamInstanceProfileRequest.getInstanceId() != null) { request.addParameter("InstanceId", StringUtils.fromString(associateIamInstanceProfileRequest.getInstanceId())); } return request; }
request.addParameter("IamInstanceProfile.Arn", StringUtils.fromString(iamInstanceProfileSpecificationIamInstanceProfile.getArn())); if (iamInstanceProfileSpecificationIamInstanceProfile.getName() != null) { request.addParameter("IamInstanceProfile.Name", StringUtils.fromString(iamInstanceProfileSpecificationIamInstanceProfile.getName()));
request.addParameter("LaunchSpecification.IamInstanceProfile.Arn", StringUtils.fromString(iamInstanceProfileSpecificationIamInstanceProfile.getArn())); if (iamInstanceProfileSpecificationIamInstanceProfile.getName() != null) { request.addParameter("LaunchSpecification.IamInstanceProfile.Name", StringUtils.fromString(iamInstanceProfileSpecificationIamInstanceProfile.getName()));
request.addParameter("SpotFleetRequestConfig.LaunchSpecifications." + launchSpecificationsListIndex + ".IamInstanceProfile.Arn", StringUtils.fromString(iamInstanceProfileSpecificationIamInstanceProfile.getArn())); if (iamInstanceProfileSpecificationIamInstanceProfile.getName() != null) { request.addParameter("SpotFleetRequestConfig.LaunchSpecifications." + launchSpecificationsListIndex + ".IamInstanceProfile.Name", StringUtils.fromString(iamInstanceProfileSpecificationIamInstanceProfile.getName()));