public PresignedUrlConfig unmarshall(JsonUnmarshallerContext context) throws Exception { PresignedUrlConfig presignedUrlConfig = new PresignedUrlConfig(); if (context.testExpression("roleArn", targetDepth)) { context.nextToken(); presignedUrlConfig.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context)); presignedUrlConfig.setExpiresInSec(context.getUnmarshaller(Long.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getExpiresInSec() == null) ? 0 : getExpiresInSec().hashCode()); return hashCode; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getTargets() == null) ? 0 : getTargets().hashCode()); hashCode = prime * hashCode + ((getDocumentSource() == null) ? 0 : getDocumentSource().hashCode()); hashCode = prime * hashCode + ((getDocument() == null) ? 0 : getDocument().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getPresignedUrlConfig() == null) ? 0 : getPresignedUrlConfig().hashCode()); hashCode = prime * hashCode + ((getTargetSelection() == null) ? 0 : getTargetSelection().hashCode()); hashCode = prime * hashCode + ((getJobExecutionsRolloutConfig() == null) ? 0 : getJobExecutionsRolloutConfig().hashCode()); hashCode = prime * hashCode + ((getAbortConfig() == null) ? 0 : getAbortConfig().hashCode()); hashCode = prime * hashCode + ((getTimeoutConfig() == null) ? 0 : getTimeoutConfig().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
if (other.getPresignedUrlConfig() == null ^ this.getPresignedUrlConfig() == null) return false; if (other.getPresignedUrlConfig() != null && other.getPresignedUrlConfig().equals(this.getPresignedUrlConfig()) == false) return false; if (other.getTargetSelection() == null ^ this.getTargetSelection() == null)
/** * <p> * The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job * data/updates are stored. The role must also grant permission for IoT to download the files. * </p> * * @param roleArn * The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job * data/updates are stored. The role must also grant permission for IoT to download the files. * @return Returns a reference to this object so that method calls can be chained together. */ public PresignedUrlConfig withRoleArn(String roleArn) { setRoleArn(roleArn); return this; }
/** * <p> * How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. * Pre-signed URLs are generated when Jobs receives an MQTT request for the job document. * </p> * * @param expiresInSec * How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 * seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document. * @return Returns a reference to this object so that method calls can be chained together. */ public PresignedUrlConfig withExpiresInSec(Long expiresInSec) { setExpiresInSec(expiresInSec); return this; }
if (other.getPresignedUrlConfig() == null ^ this.getPresignedUrlConfig() == null) return false; if (other.getPresignedUrlConfig() != null && other.getPresignedUrlConfig().equals(this.getPresignedUrlConfig()) == false) return false; if (other.getJobExecutionsRolloutConfig() == null ^ this.getJobExecutionsRolloutConfig() == null)
/** * <p> * The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job * data/updates are stored. The role must also grant permission for IoT to download the files. * </p> * * @param roleArn * The ARN of an IAM role that grants grants permission to download files from the S3 bucket where the job * data/updates are stored. The role must also grant permission for IoT to download the files. * @return Returns a reference to this object so that method calls can be chained together. */ public PresignedUrlConfig withRoleArn(String roleArn) { setRoleArn(roleArn); return this; }
/** * <p> * How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 seconds. * Pre-signed URLs are generated when Jobs receives an MQTT request for the job document. * </p> * * @param expiresInSec * How long (in seconds) pre-signed URLs are valid. Valid values are 60 - 3600, the default value is 3600 * seconds. Pre-signed URLs are generated when Jobs receives an MQTT request for the job document. * @return Returns a reference to this object so that method calls can be chained together. */ public PresignedUrlConfig withExpiresInSec(Long expiresInSec) { setExpiresInSec(expiresInSec); return this; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PresignedUrlConfig == false) return false; PresignedUrlConfig other = (PresignedUrlConfig) obj; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getExpiresInSec() == null ^ this.getExpiresInSec() == null) return false; if (other.getExpiresInSec() != null && other.getExpiresInSec().equals(this.getExpiresInSec()) == false) return false; return true; }
public PresignedUrlConfig unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } PresignedUrlConfig presignedUrlConfig = new PresignedUrlConfig(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("roleArn")) { presignedUrlConfig.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("expiresInSec")) { presignedUrlConfig.setExpiresInSec(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return presignedUrlConfig; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getPresignedUrlConfig() == null) ? 0 : getPresignedUrlConfig().hashCode()); hashCode = prime * hashCode + ((getJobExecutionsRolloutConfig() == null) ? 0 : getJobExecutionsRolloutConfig().hashCode()); hashCode = prime * hashCode + ((getAbortConfig() == null) ? 0 : getAbortConfig().hashCode()); hashCode = prime * hashCode + ((getTimeoutConfig() == null) ? 0 : getTimeoutConfig().hashCode()); return hashCode; }
if (other.getPresignedUrlConfig() == null ^ this.getPresignedUrlConfig() == null) return false; if (other.getPresignedUrlConfig() != null && other.getPresignedUrlConfig().equals(this.getPresignedUrlConfig()) == false) return false; if (other.getJobExecutionsRolloutConfig() == null ^ this.getJobExecutionsRolloutConfig() == null)
/** * 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 (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getExpiresInSec() != null) sb.append("ExpiresInSec: ").append(getExpiresInSec()); sb.append("}"); return sb.toString(); }
public PresignedUrlConfig unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } PresignedUrlConfig presignedUrlConfig = new PresignedUrlConfig(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("roleArn")) { presignedUrlConfig.setRoleArn(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("expiresInSec")) { presignedUrlConfig.setExpiresInSec(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return presignedUrlConfig; }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobArn() == null) ? 0 : getJobArn().hashCode()); hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getTargetSelection() == null) ? 0 : getTargetSelection().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getForceCanceled() == null) ? 0 : getForceCanceled().hashCode()); hashCode = prime * hashCode + ((getReasonCode() == null) ? 0 : getReasonCode().hashCode()); hashCode = prime * hashCode + ((getComment() == null) ? 0 : getComment().hashCode()); hashCode = prime * hashCode + ((getTargets() == null) ? 0 : getTargets().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getPresignedUrlConfig() == null) ? 0 : getPresignedUrlConfig().hashCode()); hashCode = prime * hashCode + ((getJobExecutionsRolloutConfig() == null) ? 0 : getJobExecutionsRolloutConfig().hashCode()); hashCode = prime * hashCode + ((getAbortConfig() == null) ? 0 : getAbortConfig().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getCompletedAt() == null) ? 0 : getCompletedAt().hashCode()); hashCode = prime * hashCode + ((getJobProcessDetails() == null) ? 0 : getJobProcessDetails().hashCode()); hashCode = prime * hashCode + ((getTimeoutConfig() == null) ? 0 : getTimeoutConfig().hashCode()); return hashCode; }
return false; if (other.getPresignedUrlConfig() != null && other.getPresignedUrlConfig().equals(this.getPresignedUrlConfig()) == false) return false; if (other.getTargetSelection() == null ^ this.getTargetSelection() == null)
/** * Marshall the given parameter object. */ public void marshall(PresignedUrlConfig presignedUrlConfig, ProtocolMarshaller protocolMarshaller) { if (presignedUrlConfig == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } try { protocolMarshaller.marshall(presignedUrlConfig.getRoleArn(), ROLEARN_BINDING); protocolMarshaller.marshall(presignedUrlConfig.getExpiresInSec(), EXPIRESINSEC_BINDING); } catch (Exception e) { throw new SdkClientException("Unable to marshall request to JSON: " + e.getMessage(), e); } }
public PresignedUrlConfig unmarshall(JsonUnmarshallerContext context) throws Exception { PresignedUrlConfig presignedUrlConfig = new PresignedUrlConfig(); if (context.testExpression("roleArn", targetDepth)) { context.nextToken(); presignedUrlConfig.setRoleArn(context.getUnmarshaller(String.class).unmarshall(context)); presignedUrlConfig.setExpiresInSec(context.getUnmarshaller(Long.class).unmarshall(context));
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getJobId() == null) ? 0 : getJobId().hashCode()); hashCode = prime * hashCode + ((getTargets() == null) ? 0 : getTargets().hashCode()); hashCode = prime * hashCode + ((getDocumentSource() == null) ? 0 : getDocumentSource().hashCode()); hashCode = prime * hashCode + ((getDocument() == null) ? 0 : getDocument().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getPresignedUrlConfig() == null) ? 0 : getPresignedUrlConfig().hashCode()); hashCode = prime * hashCode + ((getTargetSelection() == null) ? 0 : getTargetSelection().hashCode()); hashCode = prime * hashCode + ((getJobExecutionsRolloutConfig() == null) ? 0 : getJobExecutionsRolloutConfig() .hashCode()); hashCode = prime * hashCode + ((getAbortConfig() == null) ? 0 : getAbortConfig().hashCode()); hashCode = prime * hashCode + ((getTimeoutConfig() == null) ? 0 : getTimeoutConfig().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }