Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iot Update models to latest #3316

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@
public class ConflictException extends AmazonServiceException {
private static final long serialVersionUID = 1L;

/**
* <p>
* A resource with the same name already exists.
* </p>
*/
private String resourceId;

/**
* Constructs a new ConflictException with the specified error message.
*
Expand All @@ -33,4 +40,30 @@ public class ConflictException extends AmazonServiceException {
public ConflictException(String message) {
super(message);
}

/**
* <p>
* A resource with the same name already exists.
* </p>
*
* @return <p>
* A resource with the same name already exists.
* </p>
*/
public String getResourceId() {
return resourceId;
}

/**
* <p>
* A resource with the same name already exists.
* </p>
*
* @param resourceId <p>
* A resource with the same name already exists.
* </p>
*/
public void setResourceId(String resourceId) {
this.resourceId = resourceId;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* <note>
* <p>
* The CSR must include a public key that is either an RSA key with a length of
* at least 2048 bits or an ECC key from NIST P-25 or NIST P-384 curves. For
* at least 2048 bits or an ECC key from NIST P-256 or NIST P-384 curves. For
* supported certificates, consult <a href=
* "https://docs.aws.amazon.com/iot/latest/developerguide/x509-client-certs.html#x509-cert-algorithms"
* > Certificate signing algorithms supported by IoT</a>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public class CreateJobRequest extends AmazonWebServiceRequest implements Seriali
* <p>
* For example,
* <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
* .
* </p>
* <p>
* For more information, see <a href=
Expand Down Expand Up @@ -219,6 +218,18 @@ public class CreateJobRequest extends AmazonWebServiceRequest implements Seriali
*/
private SchedulingConfig schedulingConfig;

/**
* <p>
* The package version Amazon Resource Names (ARNs) that are installed on
* the device when the job successfully completes.
* </p>
* <p>
* <b>Note:</b>The following Length Constraints relates to a single string.
* Up to five strings are allowed.
* </p>
*/
private java.util.List<String> destinationPackageVersions;

/**
* <p>
* A job identifier which must be unique for your Amazon Web Services
Expand Down Expand Up @@ -375,7 +386,6 @@ public CreateJobRequest withTargets(java.util.Collection<String> targets) {
* <p>
* For example,
* <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
* .
* </p>
* <p>
* For more information, see <a href=
Expand All @@ -394,7 +404,6 @@ public CreateJobRequest withTargets(java.util.Collection<String> targets) {
* <p>
* For example,
* <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
* .
* </p>
* <p>
* For more information, see <a href=
Expand All @@ -415,7 +424,6 @@ public String getDocumentSource() {
* <p>
* For example,
* <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
* .
* </p>
* <p>
* For more information, see <a href=
Expand All @@ -434,7 +442,6 @@ public String getDocumentSource() {
* <p>
* For example,
* <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
* .
* </p>
* <p>
* For more information, see <a href=
Expand All @@ -455,7 +462,6 @@ public void setDocumentSource(String documentSource) {
* <p>
* For example,
* <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
* .
* </p>
* <p>
* For more information, see <a href=
Expand All @@ -477,7 +483,6 @@ public void setDocumentSource(String documentSource) {
* <p>
* For example,
* <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
* .
* </p>
* <p>
* For more information, see <a href=
Expand Down Expand Up @@ -1550,6 +1555,124 @@ public CreateJobRequest withSchedulingConfig(SchedulingConfig schedulingConfig)
return this;
}

/**
* <p>
* The package version Amazon Resource Names (ARNs) that are installed on
* the device when the job successfully completes.
* </p>
* <p>
* <b>Note:</b>The following Length Constraints relates to a single string.
* Up to five strings are allowed.
* </p>
*
* @return <p>
* The package version Amazon Resource Names (ARNs) that are
* installed on the device when the job successfully completes.
* </p>
* <p>
* <b>Note:</b>The following Length Constraints relates to a single
* string. Up to five strings are allowed.
* </p>
*/
public java.util.List<String> getDestinationPackageVersions() {
return destinationPackageVersions;
}

/**
* <p>
* The package version Amazon Resource Names (ARNs) that are installed on
* the device when the job successfully completes.
* </p>
* <p>
* <b>Note:</b>The following Length Constraints relates to a single string.
* Up to five strings are allowed.
* </p>
*
* @param destinationPackageVersions <p>
* The package version Amazon Resource Names (ARNs) that are
* installed on the device when the job successfully completes.
* </p>
* <p>
* <b>Note:</b>The following Length Constraints relates to a
* single string. Up to five strings are allowed.
* </p>
*/
public void setDestinationPackageVersions(
java.util.Collection<String> destinationPackageVersions) {
if (destinationPackageVersions == null) {
this.destinationPackageVersions = null;
return;
}

this.destinationPackageVersions = new java.util.ArrayList<String>(
destinationPackageVersions);
}

/**
* <p>
* The package version Amazon Resource Names (ARNs) that are installed on
* the device when the job successfully completes.
* </p>
* <p>
* <b>Note:</b>The following Length Constraints relates to a single string.
* Up to five strings are allowed.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param destinationPackageVersions <p>
* The package version Amazon Resource Names (ARNs) that are
* installed on the device when the job successfully completes.
* </p>
* <p>
* <b>Note:</b>The following Length Constraints relates to a
* single string. Up to five strings are allowed.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateJobRequest withDestinationPackageVersions(String... destinationPackageVersions) {
if (getDestinationPackageVersions() == null) {
this.destinationPackageVersions = new java.util.ArrayList<String>(
destinationPackageVersions.length);
}
for (String value : destinationPackageVersions) {
this.destinationPackageVersions.add(value);
}
return this;
}

/**
* <p>
* The package version Amazon Resource Names (ARNs) that are installed on
* the device when the job successfully completes.
* </p>
* <p>
* <b>Note:</b>The following Length Constraints relates to a single string.
* Up to five strings are allowed.
* </p>
* <p>
* Returns a reference to this object so that method calls can be chained
* together.
*
* @param destinationPackageVersions <p>
* The package version Amazon Resource Names (ARNs) that are
* installed on the device when the job successfully completes.
* </p>
* <p>
* <b>Note:</b>The following Length Constraints relates to a
* single string. Up to five strings are allowed.
* </p>
* @return A reference to this updated object so that method calls can be
* chained together.
*/
public CreateJobRequest withDestinationPackageVersions(
java.util.Collection<String> destinationPackageVersions) {
setDestinationPackageVersions(destinationPackageVersions);
return this;
}

/**
* Returns a string representation of this object; useful for testing and
* debugging.
Expand Down Expand Up @@ -1592,7 +1715,9 @@ public String toString() {
if (getDocumentParameters() != null)
sb.append("documentParameters: " + getDocumentParameters() + ",");
if (getSchedulingConfig() != null)
sb.append("schedulingConfig: " + getSchedulingConfig());
sb.append("schedulingConfig: " + getSchedulingConfig() + ",");
if (getDestinationPackageVersions() != null)
sb.append("destinationPackageVersions: " + getDestinationPackageVersions());
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -1634,6 +1759,10 @@ public int hashCode() {
+ ((getDocumentParameters() == null) ? 0 : getDocumentParameters().hashCode());
hashCode = prime * hashCode
+ ((getSchedulingConfig() == null) ? 0 : getSchedulingConfig().hashCode());
hashCode = prime
* hashCode
+ ((getDestinationPackageVersions() == null) ? 0 : getDestinationPackageVersions()
.hashCode());
return hashCode;
}

Expand Down Expand Up @@ -1727,6 +1856,13 @@ public boolean equals(Object obj) {
if (other.getSchedulingConfig() != null
&& other.getSchedulingConfig().equals(this.getSchedulingConfig()) == false)
return false;
if (other.getDestinationPackageVersions() == null
^ this.getDestinationPackageVersions() == null)
return false;
if (other.getDestinationPackageVersions() != null
&& other.getDestinationPackageVersions().equals(
this.getDestinationPackageVersions()) == false)
return false;
return true;
}
}
Loading