@@ -59,7 +59,6 @@ public class CreateJobRequest extends AmazonWebServiceRequest implements Seriali
5959 * <p>
6060 * For example,
6161 * <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
62- * .
6362 * </p>
6463 * <p>
6564 * For more information, see <a href=
@@ -219,6 +218,18 @@ public class CreateJobRequest extends AmazonWebServiceRequest implements Seriali
219218 */
220219 private SchedulingConfig schedulingConfig ;
221220
221+ /**
222+ * <p>
223+ * The package version Amazon Resource Names (ARNs) that are installed on
224+ * the device when the job successfully completes.
225+ * </p>
226+ * <p>
227+ * <b>Note:</b>The following Length Constraints relates to a single string.
228+ * Up to five strings are allowed.
229+ * </p>
230+ */
231+ private java .util .List <String > destinationPackageVersions ;
232+
222233 /**
223234 * <p>
224235 * A job identifier which must be unique for your Amazon Web Services
@@ -375,7 +386,6 @@ public CreateJobRequest withTargets(java.util.Collection<String> targets) {
375386 * <p>
376387 * For example,
377388 * <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
378- * .
379389 * </p>
380390 * <p>
381391 * For more information, see <a href=
@@ -394,7 +404,6 @@ public CreateJobRequest withTargets(java.util.Collection<String> targets) {
394404 * <p>
395405 * For example,
396406 * <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
397- * .
398407 * </p>
399408 * <p>
400409 * For more information, see <a href=
@@ -415,7 +424,6 @@ public String getDocumentSource() {
415424 * <p>
416425 * For example,
417426 * <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
418- * .
419427 * </p>
420428 * <p>
421429 * For more information, see <a href=
@@ -434,7 +442,6 @@ public String getDocumentSource() {
434442 * <p>
435443 * For example,
436444 * <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
437- * .
438445 * </p>
439446 * <p>
440447 * For more information, see <a href=
@@ -455,7 +462,6 @@ public void setDocumentSource(String documentSource) {
455462 * <p>
456463 * For example,
457464 * <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
458- * .
459465 * </p>
460466 * <p>
461467 * For more information, see <a href=
@@ -477,7 +483,6 @@ public void setDocumentSource(String documentSource) {
477483 * <p>
478484 * For example,
479485 * <code>--document-source https://s3.<i>region-code</i>.amazonaws.com/example-firmware/device-firmware.1.0</code>
480- * .
481486 * </p>
482487 * <p>
483488 * For more information, see <a href=
@@ -1550,6 +1555,124 @@ public CreateJobRequest withSchedulingConfig(SchedulingConfig schedulingConfig)
15501555 return this ;
15511556 }
15521557
1558+ /**
1559+ * <p>
1560+ * The package version Amazon Resource Names (ARNs) that are installed on
1561+ * the device when the job successfully completes.
1562+ * </p>
1563+ * <p>
1564+ * <b>Note:</b>The following Length Constraints relates to a single string.
1565+ * Up to five strings are allowed.
1566+ * </p>
1567+ *
1568+ * @return <p>
1569+ * The package version Amazon Resource Names (ARNs) that are
1570+ * installed on the device when the job successfully completes.
1571+ * </p>
1572+ * <p>
1573+ * <b>Note:</b>The following Length Constraints relates to a single
1574+ * string. Up to five strings are allowed.
1575+ * </p>
1576+ */
1577+ public java .util .List <String > getDestinationPackageVersions () {
1578+ return destinationPackageVersions ;
1579+ }
1580+
1581+ /**
1582+ * <p>
1583+ * The package version Amazon Resource Names (ARNs) that are installed on
1584+ * the device when the job successfully completes.
1585+ * </p>
1586+ * <p>
1587+ * <b>Note:</b>The following Length Constraints relates to a single string.
1588+ * Up to five strings are allowed.
1589+ * </p>
1590+ *
1591+ * @param destinationPackageVersions <p>
1592+ * The package version Amazon Resource Names (ARNs) that are
1593+ * installed on the device when the job successfully completes.
1594+ * </p>
1595+ * <p>
1596+ * <b>Note:</b>The following Length Constraints relates to a
1597+ * single string. Up to five strings are allowed.
1598+ * </p>
1599+ */
1600+ public void setDestinationPackageVersions (
1601+ java .util .Collection <String > destinationPackageVersions ) {
1602+ if (destinationPackageVersions == null ) {
1603+ this .destinationPackageVersions = null ;
1604+ return ;
1605+ }
1606+
1607+ this .destinationPackageVersions = new java .util .ArrayList <String >(
1608+ destinationPackageVersions );
1609+ }
1610+
1611+ /**
1612+ * <p>
1613+ * The package version Amazon Resource Names (ARNs) that are installed on
1614+ * the device when the job successfully completes.
1615+ * </p>
1616+ * <p>
1617+ * <b>Note:</b>The following Length Constraints relates to a single string.
1618+ * Up to five strings are allowed.
1619+ * </p>
1620+ * <p>
1621+ * Returns a reference to this object so that method calls can be chained
1622+ * together.
1623+ *
1624+ * @param destinationPackageVersions <p>
1625+ * The package version Amazon Resource Names (ARNs) that are
1626+ * installed on the device when the job successfully completes.
1627+ * </p>
1628+ * <p>
1629+ * <b>Note:</b>The following Length Constraints relates to a
1630+ * single string. Up to five strings are allowed.
1631+ * </p>
1632+ * @return A reference to this updated object so that method calls can be
1633+ * chained together.
1634+ */
1635+ public CreateJobRequest withDestinationPackageVersions (String ... destinationPackageVersions ) {
1636+ if (getDestinationPackageVersions () == null ) {
1637+ this .destinationPackageVersions = new java .util .ArrayList <String >(
1638+ destinationPackageVersions .length );
1639+ }
1640+ for (String value : destinationPackageVersions ) {
1641+ this .destinationPackageVersions .add (value );
1642+ }
1643+ return this ;
1644+ }
1645+
1646+ /**
1647+ * <p>
1648+ * The package version Amazon Resource Names (ARNs) that are installed on
1649+ * the device when the job successfully completes.
1650+ * </p>
1651+ * <p>
1652+ * <b>Note:</b>The following Length Constraints relates to a single string.
1653+ * Up to five strings are allowed.
1654+ * </p>
1655+ * <p>
1656+ * Returns a reference to this object so that method calls can be chained
1657+ * together.
1658+ *
1659+ * @param destinationPackageVersions <p>
1660+ * The package version Amazon Resource Names (ARNs) that are
1661+ * installed on the device when the job successfully completes.
1662+ * </p>
1663+ * <p>
1664+ * <b>Note:</b>The following Length Constraints relates to a
1665+ * single string. Up to five strings are allowed.
1666+ * </p>
1667+ * @return A reference to this updated object so that method calls can be
1668+ * chained together.
1669+ */
1670+ public CreateJobRequest withDestinationPackageVersions (
1671+ java .util .Collection <String > destinationPackageVersions ) {
1672+ setDestinationPackageVersions (destinationPackageVersions );
1673+ return this ;
1674+ }
1675+
15531676 /**
15541677 * Returns a string representation of this object; useful for testing and
15551678 * debugging.
@@ -1592,7 +1715,9 @@ public String toString() {
15921715 if (getDocumentParameters () != null )
15931716 sb .append ("documentParameters: " + getDocumentParameters () + "," );
15941717 if (getSchedulingConfig () != null )
1595- sb .append ("schedulingConfig: " + getSchedulingConfig ());
1718+ sb .append ("schedulingConfig: " + getSchedulingConfig () + "," );
1719+ if (getDestinationPackageVersions () != null )
1720+ sb .append ("destinationPackageVersions: " + getDestinationPackageVersions ());
15961721 sb .append ("}" );
15971722 return sb .toString ();
15981723 }
@@ -1634,6 +1759,10 @@ public int hashCode() {
16341759 + ((getDocumentParameters () == null ) ? 0 : getDocumentParameters ().hashCode ());
16351760 hashCode = prime * hashCode
16361761 + ((getSchedulingConfig () == null ) ? 0 : getSchedulingConfig ().hashCode ());
1762+ hashCode = prime
1763+ * hashCode
1764+ + ((getDestinationPackageVersions () == null ) ? 0 : getDestinationPackageVersions ()
1765+ .hashCode ());
16371766 return hashCode ;
16381767 }
16391768
@@ -1727,6 +1856,13 @@ public boolean equals(Object obj) {
17271856 if (other .getSchedulingConfig () != null
17281857 && other .getSchedulingConfig ().equals (this .getSchedulingConfig ()) == false )
17291858 return false ;
1859+ if (other .getDestinationPackageVersions () == null
1860+ ^ this .getDestinationPackageVersions () == null )
1861+ return false ;
1862+ if (other .getDestinationPackageVersions () != null
1863+ && other .getDestinationPackageVersions ().equals (
1864+ this .getDestinationPackageVersions ()) == false )
1865+ return false ;
17301866 return true ;
17311867 }
17321868}
0 commit comments