588 lines
25 KiB
C
588 lines
25 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/AWSString.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|||
|
|
#include <aws/iot/model/PresignedUrlConfig.h>
|
|||
|
|
#include <aws/iot/model/TargetSelection.h>
|
|||
|
|
#include <aws/iot/model/JobExecutionsRolloutConfig.h>
|
|||
|
|
#include <aws/iot/model/AbortConfig.h>
|
|||
|
|
#include <aws/iot/model/TimeoutConfig.h>
|
|||
|
|
#include <aws/iot/model/Tag.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
namespace IoT
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
*/
|
|||
|
|
class AWS_IOT_API CreateJobRequest : public IoTRequest
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
CreateJobRequest();
|
|||
|
|
|
|||
|
|
// 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 "CreateJob"; }
|
|||
|
|
|
|||
|
|
Aws::String SerializePayload() const override;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A job identifier which must be unique for your AWS account. We recommend
|
|||
|
|
* using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetJobId() const{ return m_jobId; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A job identifier which must be unique for your AWS account. We recommend
|
|||
|
|
* using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A job identifier which must be unique for your AWS account. We recommend
|
|||
|
|
* using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A job identifier which must be unique for your AWS account. We recommend
|
|||
|
|
* using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A job identifier which must be unique for your AWS account. We recommend
|
|||
|
|
* using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A job identifier which must be unique for your AWS account. We recommend
|
|||
|
|
* using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A job identifier which must be unique for your AWS account. We recommend
|
|||
|
|
* using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A job identifier which must be unique for your AWS account. We recommend
|
|||
|
|
* using a UUID. Alpha-numeric characters, "-" and "_" are valid for use here.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of things and thing groups to which the job should be sent.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Aws::String>& GetTargets() const{ return m_targets; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of things and thing groups to which the job should be sent.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of things and thing groups to which the job should be sent.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargets(const Aws::Vector<Aws::String>& value) { m_targetsHasBeenSet = true; m_targets = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of things and thing groups to which the job should be sent.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargets(Aws::Vector<Aws::String>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of things and thing groups to which the job should be sent.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithTargets(const Aws::Vector<Aws::String>& value) { SetTargets(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of things and thing groups to which the job should be sent.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithTargets(Aws::Vector<Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of things and thing groups to which the job should be sent.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& AddTargets(const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of things and thing groups to which the job should be sent.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& AddTargets(Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A list of things and thing groups to which the job should be sent.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& AddTargets(const char* value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An S3 link to the job document.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDocumentSource() const{ return m_documentSource; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An S3 link to the job document.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DocumentSourceHasBeenSet() const { return m_documentSourceHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An S3 link to the job document.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDocumentSource(const Aws::String& value) { m_documentSourceHasBeenSet = true; m_documentSource = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An S3 link to the job document.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDocumentSource(Aws::String&& value) { m_documentSourceHasBeenSet = true; m_documentSource = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An S3 link to the job document.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDocumentSource(const char* value) { m_documentSourceHasBeenSet = true; m_documentSource.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An S3 link to the job document.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithDocumentSource(const Aws::String& value) { SetDocumentSource(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An S3 link to the job document.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithDocumentSource(Aws::String&& value) { SetDocumentSource(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An S3 link to the job document.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithDocumentSource(const char* value) { SetDocumentSource(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The job document.</p> <p>If the job document resides in an S3 bucket,
|
|||
|
|
* you must use a placeholder link when specifying the document.</p> <p>The
|
|||
|
|
* placeholder link is of the following form:</p> <p>
|
|||
|
|
* <code>${aws:iot:s3-presigned-url:https://s3.amazonaws.com/<i>bucket</i>/<i>key</i>}</code>
|
|||
|
|
* </p> <p>where <i>bucket</i> is your bucket name and <i>key</i> is the object in
|
|||
|
|
* the bucket to which you are linking.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDocument() const{ return m_document; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The job document.</p> <p>If the job document resides in an S3 bucket,
|
|||
|
|
* you must use a placeholder link when specifying the document.</p> <p>The
|
|||
|
|
* placeholder link is of the following form:</p> <p>
|
|||
|
|
* <code>${aws:iot:s3-presigned-url:https://s3.amazonaws.com/<i>bucket</i>/<i>key</i>}</code>
|
|||
|
|
* </p> <p>where <i>bucket</i> is your bucket name and <i>key</i> is the object in
|
|||
|
|
* the bucket to which you are linking.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DocumentHasBeenSet() const { return m_documentHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The job document.</p> <p>If the job document resides in an S3 bucket,
|
|||
|
|
* you must use a placeholder link when specifying the document.</p> <p>The
|
|||
|
|
* placeholder link is of the following form:</p> <p>
|
|||
|
|
* <code>${aws:iot:s3-presigned-url:https://s3.amazonaws.com/<i>bucket</i>/<i>key</i>}</code>
|
|||
|
|
* </p> <p>where <i>bucket</i> is your bucket name and <i>key</i> is the object in
|
|||
|
|
* the bucket to which you are linking.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDocument(const Aws::String& value) { m_documentHasBeenSet = true; m_document = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The job document.</p> <p>If the job document resides in an S3 bucket,
|
|||
|
|
* you must use a placeholder link when specifying the document.</p> <p>The
|
|||
|
|
* placeholder link is of the following form:</p> <p>
|
|||
|
|
* <code>${aws:iot:s3-presigned-url:https://s3.amazonaws.com/<i>bucket</i>/<i>key</i>}</code>
|
|||
|
|
* </p> <p>where <i>bucket</i> is your bucket name and <i>key</i> is the object in
|
|||
|
|
* the bucket to which you are linking.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDocument(Aws::String&& value) { m_documentHasBeenSet = true; m_document = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The job document.</p> <p>If the job document resides in an S3 bucket,
|
|||
|
|
* you must use a placeholder link when specifying the document.</p> <p>The
|
|||
|
|
* placeholder link is of the following form:</p> <p>
|
|||
|
|
* <code>${aws:iot:s3-presigned-url:https://s3.amazonaws.com/<i>bucket</i>/<i>key</i>}</code>
|
|||
|
|
* </p> <p>where <i>bucket</i> is your bucket name and <i>key</i> is the object in
|
|||
|
|
* the bucket to which you are linking.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDocument(const char* value) { m_documentHasBeenSet = true; m_document.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The job document.</p> <p>If the job document resides in an S3 bucket,
|
|||
|
|
* you must use a placeholder link when specifying the document.</p> <p>The
|
|||
|
|
* placeholder link is of the following form:</p> <p>
|
|||
|
|
* <code>${aws:iot:s3-presigned-url:https://s3.amazonaws.com/<i>bucket</i>/<i>key</i>}</code>
|
|||
|
|
* </p> <p>where <i>bucket</i> is your bucket name and <i>key</i> is the object in
|
|||
|
|
* the bucket to which you are linking.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithDocument(const Aws::String& value) { SetDocument(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The job document.</p> <p>If the job document resides in an S3 bucket,
|
|||
|
|
* you must use a placeholder link when specifying the document.</p> <p>The
|
|||
|
|
* placeholder link is of the following form:</p> <p>
|
|||
|
|
* <code>${aws:iot:s3-presigned-url:https://s3.amazonaws.com/<i>bucket</i>/<i>key</i>}</code>
|
|||
|
|
* </p> <p>where <i>bucket</i> is your bucket name and <i>key</i> is the object in
|
|||
|
|
* the bucket to which you are linking.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithDocument(Aws::String&& value) { SetDocument(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The job document.</p> <p>If the job document resides in an S3 bucket,
|
|||
|
|
* you must use a placeholder link when specifying the document.</p> <p>The
|
|||
|
|
* placeholder link is of the following form:</p> <p>
|
|||
|
|
* <code>${aws:iot:s3-presigned-url:https://s3.amazonaws.com/<i>bucket</i>/<i>key</i>}</code>
|
|||
|
|
* </p> <p>where <i>bucket</i> is your bucket name and <i>key</i> is the object in
|
|||
|
|
* the bucket to which you are linking.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithDocument(const char* value) { SetDocument(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A short text description of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDescription() const{ return m_description; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A short text description of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A short text description of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A short text description of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A short text description of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A short text description of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A short text description of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A short text description of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Configuration information for pre-signed S3 URLs.</p>
|
|||
|
|
*/
|
|||
|
|
inline const PresignedUrlConfig& GetPresignedUrlConfig() const{ return m_presignedUrlConfig; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Configuration information for pre-signed S3 URLs.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool PresignedUrlConfigHasBeenSet() const { return m_presignedUrlConfigHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Configuration information for pre-signed S3 URLs.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPresignedUrlConfig(const PresignedUrlConfig& value) { m_presignedUrlConfigHasBeenSet = true; m_presignedUrlConfig = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Configuration information for pre-signed S3 URLs.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetPresignedUrlConfig(PresignedUrlConfig&& value) { m_presignedUrlConfigHasBeenSet = true; m_presignedUrlConfig = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Configuration information for pre-signed S3 URLs.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithPresignedUrlConfig(const PresignedUrlConfig& value) { SetPresignedUrlConfig(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Configuration information for pre-signed S3 URLs.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithPresignedUrlConfig(PresignedUrlConfig&& value) { SetPresignedUrlConfig(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies whether the job will continue to run (CONTINUOUS), or will be
|
|||
|
|
* complete after all those things specified as targets have completed the job
|
|||
|
|
* (SNAPSHOT). If continuous, the job may also be run on a thing when a change is
|
|||
|
|
* detected in a target. For example, a job will run on a thing when the thing is
|
|||
|
|
* added to a target group, even after the job was completed by all things
|
|||
|
|
* originally in the group.</p>
|
|||
|
|
*/
|
|||
|
|
inline const TargetSelection& GetTargetSelection() const{ return m_targetSelection; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies whether the job will continue to run (CONTINUOUS), or will be
|
|||
|
|
* complete after all those things specified as targets have completed the job
|
|||
|
|
* (SNAPSHOT). If continuous, the job may also be run on a thing when a change is
|
|||
|
|
* detected in a target. For example, a job will run on a thing when the thing is
|
|||
|
|
* added to a target group, even after the job was completed by all things
|
|||
|
|
* originally in the group.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TargetSelectionHasBeenSet() const { return m_targetSelectionHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies whether the job will continue to run (CONTINUOUS), or will be
|
|||
|
|
* complete after all those things specified as targets have completed the job
|
|||
|
|
* (SNAPSHOT). If continuous, the job may also be run on a thing when a change is
|
|||
|
|
* detected in a target. For example, a job will run on a thing when the thing is
|
|||
|
|
* added to a target group, even after the job was completed by all things
|
|||
|
|
* originally in the group.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargetSelection(const TargetSelection& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies whether the job will continue to run (CONTINUOUS), or will be
|
|||
|
|
* complete after all those things specified as targets have completed the job
|
|||
|
|
* (SNAPSHOT). If continuous, the job may also be run on a thing when a change is
|
|||
|
|
* detected in a target. For example, a job will run on a thing when the thing is
|
|||
|
|
* added to a target group, even after the job was completed by all things
|
|||
|
|
* originally in the group.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTargetSelection(TargetSelection&& value) { m_targetSelectionHasBeenSet = true; m_targetSelection = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies whether the job will continue to run (CONTINUOUS), or will be
|
|||
|
|
* complete after all those things specified as targets have completed the job
|
|||
|
|
* (SNAPSHOT). If continuous, the job may also be run on a thing when a change is
|
|||
|
|
* detected in a target. For example, a job will run on a thing when the thing is
|
|||
|
|
* added to a target group, even after the job was completed by all things
|
|||
|
|
* originally in the group.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithTargetSelection(const TargetSelection& value) { SetTargetSelection(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies whether the job will continue to run (CONTINUOUS), or will be
|
|||
|
|
* complete after all those things specified as targets have completed the job
|
|||
|
|
* (SNAPSHOT). If continuous, the job may also be run on a thing when a change is
|
|||
|
|
* detected in a target. For example, a job will run on a thing when the thing is
|
|||
|
|
* added to a target group, even after the job was completed by all things
|
|||
|
|
* originally in the group.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithTargetSelection(TargetSelection&& value) { SetTargetSelection(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create a staged rollout of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline const JobExecutionsRolloutConfig& GetJobExecutionsRolloutConfig() const{ return m_jobExecutionsRolloutConfig; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create a staged rollout of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool JobExecutionsRolloutConfigHasBeenSet() const { return m_jobExecutionsRolloutConfigHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create a staged rollout of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetJobExecutionsRolloutConfig(const JobExecutionsRolloutConfig& value) { m_jobExecutionsRolloutConfigHasBeenSet = true; m_jobExecutionsRolloutConfig = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create a staged rollout of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetJobExecutionsRolloutConfig(JobExecutionsRolloutConfig&& value) { m_jobExecutionsRolloutConfigHasBeenSet = true; m_jobExecutionsRolloutConfig = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create a staged rollout of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithJobExecutionsRolloutConfig(const JobExecutionsRolloutConfig& value) { SetJobExecutionsRolloutConfig(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create a staged rollout of the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithJobExecutionsRolloutConfig(JobExecutionsRolloutConfig&& value) { SetJobExecutionsRolloutConfig(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create criteria to abort a job.</p>
|
|||
|
|
*/
|
|||
|
|
inline const AbortConfig& GetAbortConfig() const{ return m_abortConfig; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create criteria to abort a job.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool AbortConfigHasBeenSet() const { return m_abortConfigHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create criteria to abort a job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAbortConfig(const AbortConfig& value) { m_abortConfigHasBeenSet = true; m_abortConfig = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create criteria to abort a job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetAbortConfig(AbortConfig&& value) { m_abortConfigHasBeenSet = true; m_abortConfig = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create criteria to abort a job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithAbortConfig(const AbortConfig& value) { SetAbortConfig(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Allows you to create criteria to abort a job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithAbortConfig(AbortConfig&& value) { SetAbortConfig(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the amount of time each device has to finish its execution of the
|
|||
|
|
* job. The timer is started when the job execution status is set to
|
|||
|
|
* <code>IN_PROGRESS</code>. If the job execution status is not set to another
|
|||
|
|
* terminal state before the time expires, it will be automatically set to
|
|||
|
|
* <code>TIMED_OUT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const TimeoutConfig& GetTimeoutConfig() const{ return m_timeoutConfig; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the amount of time each device has to finish its execution of the
|
|||
|
|
* job. The timer is started when the job execution status is set to
|
|||
|
|
* <code>IN_PROGRESS</code>. If the job execution status is not set to another
|
|||
|
|
* terminal state before the time expires, it will be automatically set to
|
|||
|
|
* <code>TIMED_OUT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TimeoutConfigHasBeenSet() const { return m_timeoutConfigHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the amount of time each device has to finish its execution of the
|
|||
|
|
* job. The timer is started when the job execution status is set to
|
|||
|
|
* <code>IN_PROGRESS</code>. If the job execution status is not set to another
|
|||
|
|
* terminal state before the time expires, it will be automatically set to
|
|||
|
|
* <code>TIMED_OUT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTimeoutConfig(const TimeoutConfig& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the amount of time each device has to finish its execution of the
|
|||
|
|
* job. The timer is started when the job execution status is set to
|
|||
|
|
* <code>IN_PROGRESS</code>. If the job execution status is not set to another
|
|||
|
|
* terminal state before the time expires, it will be automatically set to
|
|||
|
|
* <code>TIMED_OUT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTimeoutConfig(TimeoutConfig&& value) { m_timeoutConfigHasBeenSet = true; m_timeoutConfig = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the amount of time each device has to finish its execution of the
|
|||
|
|
* job. The timer is started when the job execution status is set to
|
|||
|
|
* <code>IN_PROGRESS</code>. If the job execution status is not set to another
|
|||
|
|
* terminal state before the time expires, it will be automatically set to
|
|||
|
|
* <code>TIMED_OUT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithTimeoutConfig(const TimeoutConfig& value) { SetTimeoutConfig(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specifies the amount of time each device has to finish its execution of the
|
|||
|
|
* job. The timer is started when the job execution status is set to
|
|||
|
|
* <code>IN_PROGRESS</code>. If the job execution status is not set to another
|
|||
|
|
* terminal state before the time expires, it will be automatically set to
|
|||
|
|
* <code>TIMED_OUT</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithTimeoutConfig(TimeoutConfig&& value) { SetTimeoutConfig(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Metadata which can be used to manage the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Metadata which can be used to manage the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Metadata which can be used to manage the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Metadata which can be used to manage the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Metadata which can be used to manage the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Metadata which can be used to manage the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Metadata which can be used to manage the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Metadata which can be used to manage the job.</p>
|
|||
|
|
*/
|
|||
|
|
inline CreateJobRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::String m_jobId;
|
|||
|
|
bool m_jobIdHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<Aws::String> m_targets;
|
|||
|
|
bool m_targetsHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_documentSource;
|
|||
|
|
bool m_documentSourceHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_document;
|
|||
|
|
bool m_documentHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_description;
|
|||
|
|
bool m_descriptionHasBeenSet;
|
|||
|
|
|
|||
|
|
PresignedUrlConfig m_presignedUrlConfig;
|
|||
|
|
bool m_presignedUrlConfigHasBeenSet;
|
|||
|
|
|
|||
|
|
TargetSelection m_targetSelection;
|
|||
|
|
bool m_targetSelectionHasBeenSet;
|
|||
|
|
|
|||
|
|
JobExecutionsRolloutConfig m_jobExecutionsRolloutConfig;
|
|||
|
|
bool m_jobExecutionsRolloutConfigHasBeenSet;
|
|||
|
|
|
|||
|
|
AbortConfig m_abortConfig;
|
|||
|
|
bool m_abortConfigHasBeenSet;
|
|||
|
|
|
|||
|
|
TimeoutConfig m_timeoutConfig;
|
|||
|
|
bool m_timeoutConfigHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<Tag> m_tags;
|
|||
|
|
bool m_tagsHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace IoT
|
|||
|
|
} // namespace Aws
|