/* * Copyright 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. */ /* * Do not modify this file. This file is generated from the iot-2015-05-28.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.IoT.Model { /// /// Container for the parameters to the AssociateTargetsWithJob operation. /// Associates a group with a continuous job. The following criteria must be met: /// /// /// /// Requires permission to access the AssociateTargetsWithJob /// action. /// /// public partial class AssociateTargetsWithJobRequest : AmazonIoTRequest { private string _comment; private string _jobId; private string _namespaceId; private List _targets = new List(); /// /// Gets and sets the property Comment. /// /// An optional comment string describing why the job was associated with the targets. /// /// [AWSProperty(Max=2028)] public string Comment { get { return this._comment; } set { this._comment = value; } } // Check to see if Comment property is set internal bool IsSetComment() { return this._comment != null; } /// /// Gets and sets the property JobId. /// /// The unique identifier you assigned to this job when it was created. /// /// [AWSProperty(Required=true, Min=1, Max=64)] public string JobId { get { return this._jobId; } set { this._jobId = value; } } // Check to see if JobId property is set internal bool IsSetJobId() { return this._jobId != null; } /// /// Gets and sets the property NamespaceId. /// /// 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. /// /// /// public string NamespaceId { get { return this._namespaceId; } set { this._namespaceId = value; } } // Check to see if NamespaceId property is set internal bool IsSetNamespaceId() { return this._namespaceId != null; } /// /// Gets and sets the property Targets. /// /// A list of thing group ARNs that define the targets of the job. /// /// [AWSProperty(Required=true, Min=1)] public List Targets { get { return this._targets; } set { this._targets = value; } } // Check to see if Targets property is set internal bool IsSetTargets() { return this._targets != null && this._targets.Count > 0; } } }