/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace DataExchange { namespace Model { class UpdateRevisionResult { public: AWS_DATAEXCHANGE_API UpdateRevisionResult(); AWS_DATAEXCHANGE_API UpdateRevisionResult(const Aws::AmazonWebServiceResult& result); AWS_DATAEXCHANGE_API UpdateRevisionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN for the revision.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN for the revision.

*/ inline void SetArn(const Aws::String& value) { m_arn = value; } /** *

The ARN for the revision.

*/ inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } /** *

The ARN for the revision.

*/ inline void SetArn(const char* value) { m_arn.assign(value); } /** *

The ARN for the revision.

*/ inline UpdateRevisionResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN for the revision.

*/ inline UpdateRevisionResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN for the revision.

*/ inline UpdateRevisionResult& WithArn(const char* value) { SetArn(value); return *this;} /** *

An optional comment about the revision.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

An optional comment about the revision.

*/ inline void SetComment(const Aws::String& value) { m_comment = value; } /** *

An optional comment about the revision.

*/ inline void SetComment(Aws::String&& value) { m_comment = std::move(value); } /** *

An optional comment about the revision.

*/ inline void SetComment(const char* value) { m_comment.assign(value); } /** *

An optional comment about the revision.

*/ inline UpdateRevisionResult& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

An optional comment about the revision.

*/ inline UpdateRevisionResult& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

An optional comment about the revision.

*/ inline UpdateRevisionResult& WithComment(const char* value) { SetComment(value); return *this;} /** *

The date and time that the revision was created, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time that the revision was created, in ISO 8601 format.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; } /** *

The date and time that the revision was created, in ISO 8601 format.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); } /** *

The date and time that the revision was created, in ISO 8601 format.

*/ inline UpdateRevisionResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time that the revision was created, in ISO 8601 format.

*/ inline UpdateRevisionResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The unique identifier for the data set associated with the data set * revision.

*/ inline const Aws::String& GetDataSetId() const{ return m_dataSetId; } /** *

The unique identifier for the data set associated with the data set * revision.

*/ inline void SetDataSetId(const Aws::String& value) { m_dataSetId = value; } /** *

The unique identifier for the data set associated with the data set * revision.

*/ inline void SetDataSetId(Aws::String&& value) { m_dataSetId = std::move(value); } /** *

The unique identifier for the data set associated with the data set * revision.

*/ inline void SetDataSetId(const char* value) { m_dataSetId.assign(value); } /** *

The unique identifier for the data set associated with the data set * revision.

*/ inline UpdateRevisionResult& WithDataSetId(const Aws::String& value) { SetDataSetId(value); return *this;} /** *

The unique identifier for the data set associated with the data set * revision.

*/ inline UpdateRevisionResult& WithDataSetId(Aws::String&& value) { SetDataSetId(std::move(value)); return *this;} /** *

The unique identifier for the data set associated with the data set * revision.

*/ inline UpdateRevisionResult& WithDataSetId(const char* value) { SetDataSetId(value); return *this;} /** *

To publish a revision to a data set in a product, the revision must first be * finalized. Finalizing a revision tells AWS Data Exchange that changes to the * assets in the revision are complete. After it's in this read-only state, you can * publish the revision to your products. Finalized revisions can be published * through the AWS Data Exchange console or the AWS Marketplace Catalog API, using * the StartChangeSet AWS Marketplace Catalog API action. When using the API, * revisions are uniquely identified by their ARN.

*/ inline bool GetFinalized() const{ return m_finalized; } /** *

To publish a revision to a data set in a product, the revision must first be * finalized. Finalizing a revision tells AWS Data Exchange that changes to the * assets in the revision are complete. After it's in this read-only state, you can * publish the revision to your products. Finalized revisions can be published * through the AWS Data Exchange console or the AWS Marketplace Catalog API, using * the StartChangeSet AWS Marketplace Catalog API action. When using the API, * revisions are uniquely identified by their ARN.

*/ inline void SetFinalized(bool value) { m_finalized = value; } /** *

To publish a revision to a data set in a product, the revision must first be * finalized. Finalizing a revision tells AWS Data Exchange that changes to the * assets in the revision are complete. After it's in this read-only state, you can * publish the revision to your products. Finalized revisions can be published * through the AWS Data Exchange console or the AWS Marketplace Catalog API, using * the StartChangeSet AWS Marketplace Catalog API action. When using the API, * revisions are uniquely identified by their ARN.

*/ inline UpdateRevisionResult& WithFinalized(bool value) { SetFinalized(value); return *this;} /** *

The unique identifier for the revision.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The unique identifier for the revision.

*/ inline void SetId(const Aws::String& value) { m_id = value; } /** *

The unique identifier for the revision.

*/ inline void SetId(Aws::String&& value) { m_id = std::move(value); } /** *

The unique identifier for the revision.

*/ inline void SetId(const char* value) { m_id.assign(value); } /** *

The unique identifier for the revision.

*/ inline UpdateRevisionResult& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The unique identifier for the revision.

*/ inline UpdateRevisionResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The unique identifier for the revision.

*/ inline UpdateRevisionResult& WithId(const char* value) { SetId(value); return *this;} /** *

The revision ID of the owned revision corresponding to the entitled revision * being viewed. This parameter is returned when a revision owner is viewing the * entitled copy of its owned revision.

*/ inline const Aws::String& GetSourceId() const{ return m_sourceId; } /** *

The revision ID of the owned revision corresponding to the entitled revision * being viewed. This parameter is returned when a revision owner is viewing the * entitled copy of its owned revision.

*/ inline void SetSourceId(const Aws::String& value) { m_sourceId = value; } /** *

The revision ID of the owned revision corresponding to the entitled revision * being viewed. This parameter is returned when a revision owner is viewing the * entitled copy of its owned revision.

*/ inline void SetSourceId(Aws::String&& value) { m_sourceId = std::move(value); } /** *

The revision ID of the owned revision corresponding to the entitled revision * being viewed. This parameter is returned when a revision owner is viewing the * entitled copy of its owned revision.

*/ inline void SetSourceId(const char* value) { m_sourceId.assign(value); } /** *

The revision ID of the owned revision corresponding to the entitled revision * being viewed. This parameter is returned when a revision owner is viewing the * entitled copy of its owned revision.

*/ inline UpdateRevisionResult& WithSourceId(const Aws::String& value) { SetSourceId(value); return *this;} /** *

The revision ID of the owned revision corresponding to the entitled revision * being viewed. This parameter is returned when a revision owner is viewing the * entitled copy of its owned revision.

*/ inline UpdateRevisionResult& WithSourceId(Aws::String&& value) { SetSourceId(std::move(value)); return *this;} /** *

The revision ID of the owned revision corresponding to the entitled revision * being viewed. This parameter is returned when a revision owner is viewing the * entitled copy of its owned revision.

*/ inline UpdateRevisionResult& WithSourceId(const char* value) { SetSourceId(value); return *this;} /** *

The date and time that the revision was last updated, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The date and time that the revision was last updated, in ISO 8601 format.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAt = value; } /** *

The date and time that the revision was last updated, in ISO 8601 format.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAt = std::move(value); } /** *

The date and time that the revision was last updated, in ISO 8601 format.

*/ inline UpdateRevisionResult& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;} /** *

The date and time that the revision was last updated, in ISO 8601 format.

*/ inline UpdateRevisionResult& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;} /** *

A required comment to inform subscribers of the reason their access to the * revision was revoked.

*/ inline const Aws::String& GetRevocationComment() const{ return m_revocationComment; } /** *

A required comment to inform subscribers of the reason their access to the * revision was revoked.

*/ inline void SetRevocationComment(const Aws::String& value) { m_revocationComment = value; } /** *

A required comment to inform subscribers of the reason their access to the * revision was revoked.

*/ inline void SetRevocationComment(Aws::String&& value) { m_revocationComment = std::move(value); } /** *

A required comment to inform subscribers of the reason their access to the * revision was revoked.

*/ inline void SetRevocationComment(const char* value) { m_revocationComment.assign(value); } /** *

A required comment to inform subscribers of the reason their access to the * revision was revoked.

*/ inline UpdateRevisionResult& WithRevocationComment(const Aws::String& value) { SetRevocationComment(value); return *this;} /** *

A required comment to inform subscribers of the reason their access to the * revision was revoked.

*/ inline UpdateRevisionResult& WithRevocationComment(Aws::String&& value) { SetRevocationComment(std::move(value)); return *this;} /** *

A required comment to inform subscribers of the reason their access to the * revision was revoked.

*/ inline UpdateRevisionResult& WithRevocationComment(const char* value) { SetRevocationComment(value); return *this;} /** *

A status indicating that subscribers' access to the revision was revoked.

*/ inline bool GetRevoked() const{ return m_revoked; } /** *

A status indicating that subscribers' access to the revision was revoked.

*/ inline void SetRevoked(bool value) { m_revoked = value; } /** *

A status indicating that subscribers' access to the revision was revoked.

*/ inline UpdateRevisionResult& WithRevoked(bool value) { SetRevoked(value); return *this;} /** *

The date and time that the revision was revoked, in ISO 8601 format.

*/ inline const Aws::Utils::DateTime& GetRevokedAt() const{ return m_revokedAt; } /** *

The date and time that the revision was revoked, in ISO 8601 format.

*/ inline void SetRevokedAt(const Aws::Utils::DateTime& value) { m_revokedAt = value; } /** *

The date and time that the revision was revoked, in ISO 8601 format.

*/ inline void SetRevokedAt(Aws::Utils::DateTime&& value) { m_revokedAt = std::move(value); } /** *

The date and time that the revision was revoked, in ISO 8601 format.

*/ inline UpdateRevisionResult& WithRevokedAt(const Aws::Utils::DateTime& value) { SetRevokedAt(value); return *this;} /** *

The date and time that the revision was revoked, in ISO 8601 format.

*/ inline UpdateRevisionResult& WithRevokedAt(Aws::Utils::DateTime&& value) { SetRevokedAt(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpdateRevisionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateRevisionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateRevisionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; Aws::String m_comment; Aws::Utils::DateTime m_createdAt; Aws::String m_dataSetId; bool m_finalized; Aws::String m_id; Aws::String m_sourceId; Aws::Utils::DateTime m_updatedAt; Aws::String m_revocationComment; bool m_revoked; Aws::Utils::DateTime m_revokedAt; Aws::String m_requestId; }; } // namespace Model } // namespace DataExchange } // namespace Aws