186 lines
6.4 KiB
C
186 lines
6.4 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/iot/IoT_EXPORTS.h>
|
|||
|
|
#include <aws/iot/IoTRequest.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace IoT
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class AWS_IOT_API AssociateTargetsWithJobRequest : public IoTRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
AssociateTargetsWithJobRequest();
|
|||
|
|
|
|||
|
|
// Service request name is the Operation name which will send this request out,
|
|||
|
|
// each operation should has unique request name, so that we can get operation's name from this request.
|
|||
|
|
// Note: this is not true for response, multiple operations may have the same response name,
|
|||
|
|
// so we can not get operation's name from response.
|
|||
|
|
inline virtual const char* GetServiceRequestName() const override { return "AssociateTargetsWithJob"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of thing group ARNs that define the targets of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Aws::String>& GetTargets() const{ return m_targets; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of thing group ARNs that define the targets of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of thing group ARNs that define the targets of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargets(const Aws::Vector<Aws::String>& value) { m_targetsHasBeenSet = true; m_targets = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of thing group ARNs that define the targets of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargets(Aws::Vector<Aws::String>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of thing group ARNs that define the targets of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& WithTargets(const Aws::Vector<Aws::String>& value) { SetTargets(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of thing group ARNs that define the targets of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& WithTargets(Aws::Vector<Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of thing group ARNs that define the targets of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& AddTargets(const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of thing group ARNs that define the targets of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& AddTargets(Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of thing group ARNs that define the targets of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& AddTargets(const char* value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier you assigned to this job when it was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetJobId() const{ return m_jobId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier you assigned to this job when it was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier you assigned to this job when it was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier you assigned to this job when it was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier you assigned to this job when it was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier you assigned to this job when it was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier you assigned to this job when it was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The unique identifier you assigned to this job when it was created.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional comment string describing why the job was associated with the
|
|||
|
|
* targets.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetComment() const{ return m_comment; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional comment string describing why the job was associated with the
|
|||
|
|
* targets.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional comment string describing why the job was associated with the
|
|||
|
|
* targets.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional comment string describing why the job was associated with the
|
|||
|
|
* targets.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional comment string describing why the job was associated with the
|
|||
|
|
* targets.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional comment string describing why the job was associated with the
|
|||
|
|
* targets.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional comment string describing why the job was associated with the
|
|||
|
|
* targets.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An optional comment string describing why the job was associated with the
|
|||
|
|
* targets.</p>
|
|||
|
|
*/
|
|||
|
|
inline AssociateTargetsWithJobRequest& WithComment(const char* value) { SetComment(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::Vector<Aws::String> m_targets;
|
|||
|
|
bool m_targetsHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_jobId;
|
|||
|
|
bool m_jobIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_comment;
|
|||
|
|
bool m_commentHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace IoT
|
|||
|
|
} // namespace Aws
|