/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.iot.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AssociateTargetsWithJobRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* A list of thing group ARNs that define the targets of the job. *
*/ private java.util.List* The unique identifier you assigned to this job when it was created. *
*/ private String jobId; /** ** An optional comment string describing why the job was associated with the targets. *
*/ private String comment; /** ** The namespace used to indicate that a job is a customer-managed job. *
** When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics * that contain the value in the following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* A list of thing group ARNs that define the targets of the job. *
* * @return A list of thing group ARNs that define the targets of the job. */ public java.util.List* A list of thing group ARNs that define the targets of the job. *
* * @param targets * A list of thing group ARNs that define the targets of the job. */ public void setTargets(java.util.Collection* A list of thing group ARNs that define the targets of the job. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTargets(java.util.Collection)} or {@link #withTargets(java.util.Collection)} if you want to override * the existing values. *
* * @param targets * A list of thing group ARNs that define the targets of the job. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateTargetsWithJobRequest withTargets(String... targets) { if (this.targets == null) { setTargets(new java.util.ArrayList* A list of thing group ARNs that define the targets of the job. *
* * @param targets * A list of thing group ARNs that define the targets of the job. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateTargetsWithJobRequest withTargets(java.util.Collection* The unique identifier you assigned to this job when it was created. *
* * @param jobId * The unique identifier you assigned to this job when it was created. */ public void setJobId(String jobId) { this.jobId = jobId; } /** ** The unique identifier you assigned to this job when it was created. *
* * @return The unique identifier you assigned to this job when it was created. */ public String getJobId() { return this.jobId; } /** ** The unique identifier you assigned to this job when it was created. *
* * @param jobId * The unique identifier you assigned to this job when it was created. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateTargetsWithJobRequest withJobId(String jobId) { setJobId(jobId); return this; } /** ** An optional comment string describing why the job was associated with the targets. *
* * @param comment * An optional comment string describing why the job was associated with the targets. */ public void setComment(String comment) { this.comment = comment; } /** ** An optional comment string describing why the job was associated with the targets. *
* * @return An optional comment string describing why the job was associated with the targets. */ public String getComment() { return this.comment; } /** ** An optional comment string describing why the job was associated with the targets. *
* * @param comment * An optional comment string describing why the job was associated with the targets. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateTargetsWithJobRequest withComment(String comment) { setComment(comment); return this; } /** ** The namespace used to indicate that a job is a customer-managed job. *
** When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics * that contain the value in the following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT * topics that contain the value in the following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* The namespace used to indicate that a job is a customer-managed job. *
** When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics * that contain the value in the following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to * MQTT topics that contain the value in the following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* The namespace used to indicate that a job is a customer-managed job. *
** When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT topics * that contain the value in the following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*
* When you specify a value for this parameter, Amazon Web Services IoT Core sends jobs notifications to MQTT * topics that contain the value in the following format. *
*
* $aws/things/THING_NAME/jobs/JOB_ID/notify-namespace-NAMESPACE_ID/
*
* The namespaceId
feature is in public preview.
*