/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Http { class URI; } //namespace Http namespace S3Control { namespace Model { /** */ class UpdateJobStatusRequest : public S3ControlRequest { public: AWS_S3CONTROL_API UpdateJobStatusRequest(); // 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 "UpdateJobStatus"; } AWS_S3CONTROL_API Aws::String SerializePayload() const override; AWS_S3CONTROL_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; AWS_S3CONTROL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** * Helper function to collect parameters (configurable and static hardcoded) required for endpoint computation. */ AWS_S3CONTROL_API EndpointParameters GetEndpointContextParams() const override; /** *

The Amazon Web Services account ID associated with the S3 Batch Operations * job.

*/ inline const Aws::String& GetAccountId() const{ return m_accountId; } /** *

The Amazon Web Services account ID associated with the S3 Batch Operations * job.

*/ inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; } /** *

The Amazon Web Services account ID associated with the S3 Batch Operations * job.

*/ inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; } /** *

The Amazon Web Services account ID associated with the S3 Batch Operations * job.

*/ inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); } /** *

The Amazon Web Services account ID associated with the S3 Batch Operations * job.

*/ inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); } /** *

The Amazon Web Services account ID associated with the S3 Batch Operations * job.

*/ inline UpdateJobStatusRequest& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;} /** *

The Amazon Web Services account ID associated with the S3 Batch Operations * job.

*/ inline UpdateJobStatusRequest& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;} /** *

The Amazon Web Services account ID associated with the S3 Batch Operations * job.

*/ inline UpdateJobStatusRequest& WithAccountId(const char* value) { SetAccountId(value); return *this;} /** *

The ID of the job whose status you want to update.

*/ inline const Aws::String& GetJobId() const{ return m_jobId; } /** *

The ID of the job whose status you want to update.

*/ inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } /** *

The ID of the job whose status you want to update.

*/ inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } /** *

The ID of the job whose status you want to update.

*/ inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } /** *

The ID of the job whose status you want to update.

*/ inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } /** *

The ID of the job whose status you want to update.

*/ inline UpdateJobStatusRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} /** *

The ID of the job whose status you want to update.

*/ inline UpdateJobStatusRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} /** *

The ID of the job whose status you want to update.

*/ inline UpdateJobStatusRequest& WithJobId(const char* value) { SetJobId(value); return *this;} /** *

The status that you want to move the specified job to.

*/ inline const RequestedJobStatus& GetRequestedJobStatus() const{ return m_requestedJobStatus; } /** *

The status that you want to move the specified job to.

*/ inline bool RequestedJobStatusHasBeenSet() const { return m_requestedJobStatusHasBeenSet; } /** *

The status that you want to move the specified job to.

*/ inline void SetRequestedJobStatus(const RequestedJobStatus& value) { m_requestedJobStatusHasBeenSet = true; m_requestedJobStatus = value; } /** *

The status that you want to move the specified job to.

*/ inline void SetRequestedJobStatus(RequestedJobStatus&& value) { m_requestedJobStatusHasBeenSet = true; m_requestedJobStatus = std::move(value); } /** *

The status that you want to move the specified job to.

*/ inline UpdateJobStatusRequest& WithRequestedJobStatus(const RequestedJobStatus& value) { SetRequestedJobStatus(value); return *this;} /** *

The status that you want to move the specified job to.

*/ inline UpdateJobStatusRequest& WithRequestedJobStatus(RequestedJobStatus&& value) { SetRequestedJobStatus(std::move(value)); return *this;} /** *

A description of the reason why you want to change the specified job's * status. This field can be any string up to the maximum length.

*/ inline const Aws::String& GetStatusUpdateReason() const{ return m_statusUpdateReason; } /** *

A description of the reason why you want to change the specified job's * status. This field can be any string up to the maximum length.

*/ inline bool StatusUpdateReasonHasBeenSet() const { return m_statusUpdateReasonHasBeenSet; } /** *

A description of the reason why you want to change the specified job's * status. This field can be any string up to the maximum length.

*/ inline void SetStatusUpdateReason(const Aws::String& value) { m_statusUpdateReasonHasBeenSet = true; m_statusUpdateReason = value; } /** *

A description of the reason why you want to change the specified job's * status. This field can be any string up to the maximum length.

*/ inline void SetStatusUpdateReason(Aws::String&& value) { m_statusUpdateReasonHasBeenSet = true; m_statusUpdateReason = std::move(value); } /** *

A description of the reason why you want to change the specified job's * status. This field can be any string up to the maximum length.

*/ inline void SetStatusUpdateReason(const char* value) { m_statusUpdateReasonHasBeenSet = true; m_statusUpdateReason.assign(value); } /** *

A description of the reason why you want to change the specified job's * status. This field can be any string up to the maximum length.

*/ inline UpdateJobStatusRequest& WithStatusUpdateReason(const Aws::String& value) { SetStatusUpdateReason(value); return *this;} /** *

A description of the reason why you want to change the specified job's * status. This field can be any string up to the maximum length.

*/ inline UpdateJobStatusRequest& WithStatusUpdateReason(Aws::String&& value) { SetStatusUpdateReason(std::move(value)); return *this;} /** *

A description of the reason why you want to change the specified job's * status. This field can be any string up to the maximum length.

*/ inline UpdateJobStatusRequest& WithStatusUpdateReason(const char* value) { SetStatusUpdateReason(value); return *this;} private: Aws::String m_accountId; bool m_accountIdHasBeenSet = false; Aws::String m_jobId; bool m_jobIdHasBeenSet = false; RequestedJobStatus m_requestedJobStatus; bool m_requestedJobStatusHasBeenSet = false; Aws::String m_statusUpdateReason; bool m_statusUpdateReasonHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws