/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SSM { namespace Model { /** *

Version information about the document.

See Also:

AWS * API Reference

*/ class AWS_SSM_API DocumentVersionInfo { public: DocumentVersionInfo(); DocumentVersionInfo(Aws::Utils::Json::JsonView jsonValue); DocumentVersionInfo& operator=(Aws::Utils::Json::JsonView jsonValue); Aws::Utils::Json::JsonValue Jsonize() const; /** *

The document name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The document name.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The document name.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The document name.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The document name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The document name.

*/ inline DocumentVersionInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The document name.

*/ inline DocumentVersionInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The document name.

*/ inline DocumentVersionInfo& WithName(const char* value) { SetName(value); return *this;} /** *

The document version.

*/ inline const Aws::String& GetDocumentVersion() const{ return m_documentVersion; } /** *

The document version.

*/ inline bool DocumentVersionHasBeenSet() const { return m_documentVersionHasBeenSet; } /** *

The document version.

*/ inline void SetDocumentVersion(const Aws::String& value) { m_documentVersionHasBeenSet = true; m_documentVersion = value; } /** *

The document version.

*/ inline void SetDocumentVersion(Aws::String&& value) { m_documentVersionHasBeenSet = true; m_documentVersion = std::move(value); } /** *

The document version.

*/ inline void SetDocumentVersion(const char* value) { m_documentVersionHasBeenSet = true; m_documentVersion.assign(value); } /** *

The document version.

*/ inline DocumentVersionInfo& WithDocumentVersion(const Aws::String& value) { SetDocumentVersion(value); return *this;} /** *

The document version.

*/ inline DocumentVersionInfo& WithDocumentVersion(Aws::String&& value) { SetDocumentVersion(std::move(value)); return *this;} /** *

The document version.

*/ inline DocumentVersionInfo& WithDocumentVersion(const char* value) { SetDocumentVersion(value); return *this;} /** *

The version of the artifact associated with the document. For example, * "Release 12, Update 6". This value is unique across all versions of a document, * and cannot be changed.

*/ inline const Aws::String& GetVersionName() const{ return m_versionName; } /** *

The version of the artifact associated with the document. For example, * "Release 12, Update 6". This value is unique across all versions of a document, * and cannot be changed.

*/ inline bool VersionNameHasBeenSet() const { return m_versionNameHasBeenSet; } /** *

The version of the artifact associated with the document. For example, * "Release 12, Update 6". This value is unique across all versions of a document, * and cannot be changed.

*/ inline void SetVersionName(const Aws::String& value) { m_versionNameHasBeenSet = true; m_versionName = value; } /** *

The version of the artifact associated with the document. For example, * "Release 12, Update 6". This value is unique across all versions of a document, * and cannot be changed.

*/ inline void SetVersionName(Aws::String&& value) { m_versionNameHasBeenSet = true; m_versionName = std::move(value); } /** *

The version of the artifact associated with the document. For example, * "Release 12, Update 6". This value is unique across all versions of a document, * and cannot be changed.

*/ inline void SetVersionName(const char* value) { m_versionNameHasBeenSet = true; m_versionName.assign(value); } /** *

The version of the artifact associated with the document. For example, * "Release 12, Update 6". This value is unique across all versions of a document, * and cannot be changed.

*/ inline DocumentVersionInfo& WithVersionName(const Aws::String& value) { SetVersionName(value); return *this;} /** *

The version of the artifact associated with the document. For example, * "Release 12, Update 6". This value is unique across all versions of a document, * and cannot be changed.

*/ inline DocumentVersionInfo& WithVersionName(Aws::String&& value) { SetVersionName(std::move(value)); return *this;} /** *

The version of the artifact associated with the document. For example, * "Release 12, Update 6". This value is unique across all versions of a document, * and cannot be changed.

*/ inline DocumentVersionInfo& WithVersionName(const char* value) { SetVersionName(value); return *this;} /** *

The date the document was created.

*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *

The date the document was created.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The date the document was created.

*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

The date the document was created.

*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } /** *

The date the document was created.

*/ inline DocumentVersionInfo& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date the document was created.

*/ inline DocumentVersionInfo& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

An identifier for the default version of the document.

*/ inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; } /** *

An identifier for the default version of the document.

*/ inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; } /** *

An identifier for the default version of the document.

*/ inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; } /** *

An identifier for the default version of the document.

*/ inline DocumentVersionInfo& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;} /** *

The document format, either JSON or YAML.

*/ inline const DocumentFormat& GetDocumentFormat() const{ return m_documentFormat; } /** *

The document format, either JSON or YAML.

*/ inline bool DocumentFormatHasBeenSet() const { return m_documentFormatHasBeenSet; } /** *

The document format, either JSON or YAML.

*/ inline void SetDocumentFormat(const DocumentFormat& value) { m_documentFormatHasBeenSet = true; m_documentFormat = value; } /** *

The document format, either JSON or YAML.

*/ inline void SetDocumentFormat(DocumentFormat&& value) { m_documentFormatHasBeenSet = true; m_documentFormat = std::move(value); } /** *

The document format, either JSON or YAML.

*/ inline DocumentVersionInfo& WithDocumentFormat(const DocumentFormat& value) { SetDocumentFormat(value); return *this;} /** *

The document format, either JSON or YAML.

*/ inline DocumentVersionInfo& WithDocumentFormat(DocumentFormat&& value) { SetDocumentFormat(std::move(value)); return *this;} /** *

The status of the Systems Manager document, such as Creating, * Active, Failed, and Deleting.

*/ inline const DocumentStatus& GetStatus() const{ return m_status; } /** *

The status of the Systems Manager document, such as Creating, * Active, Failed, and Deleting.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of the Systems Manager document, such as Creating, * Active, Failed, and Deleting.

*/ inline void SetStatus(const DocumentStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the Systems Manager document, such as Creating, * Active, Failed, and Deleting.

*/ inline void SetStatus(DocumentStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of the Systems Manager document, such as Creating, * Active, Failed, and Deleting.

*/ inline DocumentVersionInfo& WithStatus(const DocumentStatus& value) { SetStatus(value); return *this;} /** *

The status of the Systems Manager document, such as Creating, * Active, Failed, and Deleting.

*/ inline DocumentVersionInfo& WithStatus(DocumentStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

A message returned by AWS Systems Manager that explains the * Status value. For example, a Failed status might be * explained by the StatusInformation message, "The specified S3 * bucket does not exist. Verify that the URL of the S3 bucket is correct."

*/ inline const Aws::String& GetStatusInformation() const{ return m_statusInformation; } /** *

A message returned by AWS Systems Manager that explains the * Status value. For example, a Failed status might be * explained by the StatusInformation message, "The specified S3 * bucket does not exist. Verify that the URL of the S3 bucket is correct."

*/ inline bool StatusInformationHasBeenSet() const { return m_statusInformationHasBeenSet; } /** *

A message returned by AWS Systems Manager that explains the * Status value. For example, a Failed status might be * explained by the StatusInformation message, "The specified S3 * bucket does not exist. Verify that the URL of the S3 bucket is correct."

*/ inline void SetStatusInformation(const Aws::String& value) { m_statusInformationHasBeenSet = true; m_statusInformation = value; } /** *

A message returned by AWS Systems Manager that explains the * Status value. For example, a Failed status might be * explained by the StatusInformation message, "The specified S3 * bucket does not exist. Verify that the URL of the S3 bucket is correct."

*/ inline void SetStatusInformation(Aws::String&& value) { m_statusInformationHasBeenSet = true; m_statusInformation = std::move(value); } /** *

A message returned by AWS Systems Manager that explains the * Status value. For example, a Failed status might be * explained by the StatusInformation message, "The specified S3 * bucket does not exist. Verify that the URL of the S3 bucket is correct."

*/ inline void SetStatusInformation(const char* value) { m_statusInformationHasBeenSet = true; m_statusInformation.assign(value); } /** *

A message returned by AWS Systems Manager that explains the * Status value. For example, a Failed status might be * explained by the StatusInformation message, "The specified S3 * bucket does not exist. Verify that the URL of the S3 bucket is correct."

*/ inline DocumentVersionInfo& WithStatusInformation(const Aws::String& value) { SetStatusInformation(value); return *this;} /** *

A message returned by AWS Systems Manager that explains the * Status value. For example, a Failed status might be * explained by the StatusInformation message, "The specified S3 * bucket does not exist. Verify that the URL of the S3 bucket is correct."

*/ inline DocumentVersionInfo& WithStatusInformation(Aws::String&& value) { SetStatusInformation(std::move(value)); return *this;} /** *

A message returned by AWS Systems Manager that explains the * Status value. For example, a Failed status might be * explained by the StatusInformation message, "The specified S3 * bucket does not exist. Verify that the URL of the S3 bucket is correct."

*/ inline DocumentVersionInfo& WithStatusInformation(const char* value) { SetStatusInformation(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet; Aws::String m_documentVersion; bool m_documentVersionHasBeenSet; Aws::String m_versionName; bool m_versionNameHasBeenSet; Aws::Utils::DateTime m_createdDate; bool m_createdDateHasBeenSet; bool m_isDefaultVersion; bool m_isDefaultVersionHasBeenSet; DocumentFormat m_documentFormat; bool m_documentFormatHasBeenSet; DocumentStatus m_status; bool m_statusHasBeenSet; Aws::String m_statusInformation; bool m_statusInformationHasBeenSet; }; } // namespace Model } // namespace SSM } // namespace Aws