/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace SSM { namespace Model { /** */ class UpdateDocumentRequest : public SSMRequest { public: AWS_SSM_API UpdateDocumentRequest(); // 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 "UpdateDocument"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A valid JSON or YAML string.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

A valid JSON or YAML string.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

A valid JSON or YAML string.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

A valid JSON or YAML string.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

A valid JSON or YAML string.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

A valid JSON or YAML string.

*/ inline UpdateDocumentRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

A valid JSON or YAML string.

*/ inline UpdateDocumentRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

A valid JSON or YAML string.

*/ inline UpdateDocumentRequest& WithContent(const char* value) { SetContent(value); return *this;} /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline const Aws::Vector& GetAttachments() const{ return m_attachments; } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline void SetAttachments(const Aws::Vector& value) { m_attachmentsHasBeenSet = true; m_attachments = value; } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline void SetAttachments(Aws::Vector&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline UpdateDocumentRequest& WithAttachments(const Aws::Vector& value) { SetAttachments(value); return *this;} /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline UpdateDocumentRequest& WithAttachments(Aws::Vector&& value) { SetAttachments(std::move(value)); return *this;} /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline UpdateDocumentRequest& AddAttachments(const AttachmentsSource& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; } /** *

A list of key-value pairs that describe attachments to a version of a * document.

*/ inline UpdateDocumentRequest& AddAttachments(AttachmentsSource&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; } /** *

The name of the SSM document that you want to update.

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

The name of the SSM document that you want to update.

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

The name of the SSM document that you want to update.

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

The name of the SSM document that you want to update.

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

The name of the SSM document that you want to update.

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

The name of the SSM document that you want to update.

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

The name of the SSM document that you want to update.

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

The name of the SSM document that you want to update.

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

The friendly name of the SSM document that you want to update. This value can * differ for each version of the document. If you don't specify a value for this * parameter in your request, the existing value is applied to the new document * version.

*/ inline const Aws::String& GetDisplayName() const{ return m_displayName; } /** *

The friendly name of the SSM document that you want to update. This value can * differ for each version of the document. If you don't specify a value for this * parameter in your request, the existing value is applied to the new document * version.

*/ inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; } /** *

The friendly name of the SSM document that you want to update. This value can * differ for each version of the document. If you don't specify a value for this * parameter in your request, the existing value is applied to the new document * version.

*/ inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; } /** *

The friendly name of the SSM document that you want to update. This value can * differ for each version of the document. If you don't specify a value for this * parameter in your request, the existing value is applied to the new document * version.

*/ inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); } /** *

The friendly name of the SSM document that you want to update. This value can * differ for each version of the document. If you don't specify a value for this * parameter in your request, the existing value is applied to the new document * version.

*/ inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); } /** *

The friendly name of the SSM document that you want to update. This value can * differ for each version of the document. If you don't specify a value for this * parameter in your request, the existing value is applied to the new document * version.

*/ inline UpdateDocumentRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;} /** *

The friendly name of the SSM document that you want to update. This value can * differ for each version of the document. If you don't specify a value for this * parameter in your request, the existing value is applied to the new document * version.

*/ inline UpdateDocumentRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;} /** *

The friendly name of the SSM document that you want to update. This value can * differ for each version of the document. If you don't specify a value for this * parameter in your request, the existing value is applied to the new document * version.

*/ inline UpdateDocumentRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;} /** *

An optional field specifying the version of the artifact you are updating * with the document. For example, "Release 12, Update 6". This value is unique * across all versions of a document, and can't be changed.

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

An optional field specifying the version of the artifact you are updating * with the document. For example, "Release 12, Update 6". This value is unique * across all versions of a document, and can't be changed.

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

An optional field specifying the version of the artifact you are updating * with the document. For example, "Release 12, Update 6". This value is unique * across all versions of a document, and can't be changed.

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

An optional field specifying the version of the artifact you are updating * with the document. For example, "Release 12, Update 6". This value is unique * across all versions of a document, and can't be changed.

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

An optional field specifying the version of the artifact you are updating * with the document. For example, "Release 12, Update 6". This value is unique * across all versions of a document, and can't be changed.

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

An optional field specifying the version of the artifact you are updating * with the document. For example, "Release 12, Update 6". This value is unique * across all versions of a document, and can't be changed.

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

An optional field specifying the version of the artifact you are updating * with the document. For example, "Release 12, Update 6". This value is unique * across all versions of a document, and can't be changed.

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

An optional field specifying the version of the artifact you are updating * with the document. For example, "Release 12, Update 6". This value is unique * across all versions of a document, and can't be changed.

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

The version of the document that you want to update. Currently, Systems * Manager supports updating only the latest version of the document. You can * specify the version number of the latest version or use the $LATEST * variable.

If you change a document version for a State Manager * association, Systems Manager immediately runs the association unless you * previously specifed the apply-only-at-cron-interval parameter.

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

The version of the document that you want to update. Currently, Systems * Manager supports updating only the latest version of the document. You can * specify the version number of the latest version or use the $LATEST * variable.

If you change a document version for a State Manager * association, Systems Manager immediately runs the association unless you * previously specifed the apply-only-at-cron-interval parameter.

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

The version of the document that you want to update. Currently, Systems * Manager supports updating only the latest version of the document. You can * specify the version number of the latest version or use the $LATEST * variable.

If you change a document version for a State Manager * association, Systems Manager immediately runs the association unless you * previously specifed the apply-only-at-cron-interval parameter.

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

The version of the document that you want to update. Currently, Systems * Manager supports updating only the latest version of the document. You can * specify the version number of the latest version or use the $LATEST * variable.

If you change a document version for a State Manager * association, Systems Manager immediately runs the association unless you * previously specifed the apply-only-at-cron-interval parameter.

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

The version of the document that you want to update. Currently, Systems * Manager supports updating only the latest version of the document. You can * specify the version number of the latest version or use the $LATEST * variable.

If you change a document version for a State Manager * association, Systems Manager immediately runs the association unless you * previously specifed the apply-only-at-cron-interval parameter.

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

The version of the document that you want to update. Currently, Systems * Manager supports updating only the latest version of the document. You can * specify the version number of the latest version or use the $LATEST * variable.

If you change a document version for a State Manager * association, Systems Manager immediately runs the association unless you * previously specifed the apply-only-at-cron-interval parameter.

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

The version of the document that you want to update. Currently, Systems * Manager supports updating only the latest version of the document. You can * specify the version number of the latest version or use the $LATEST * variable.

If you change a document version for a State Manager * association, Systems Manager immediately runs the association unless you * previously specifed the apply-only-at-cron-interval parameter.

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

The version of the document that you want to update. Currently, Systems * Manager supports updating only the latest version of the document. You can * specify the version number of the latest version or use the $LATEST * variable.

If you change a document version for a State Manager * association, Systems Manager immediately runs the association unless you * previously specifed the apply-only-at-cron-interval parameter.

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

Specify the document format for the new document version. Systems Manager * supports JSON and YAML documents. JSON is the default format.

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

Specify the document format for the new document version. Systems Manager * supports JSON and YAML documents. JSON is the default format.

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

Specify the document format for the new document version. Systems Manager * supports JSON and YAML documents. JSON is the default format.

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

Specify the document format for the new document version. Systems Manager * supports JSON and YAML documents. JSON is the default format.

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

Specify the document format for the new document version. Systems Manager * supports JSON and YAML documents. JSON is the default format.

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

Specify the document format for the new document version. Systems Manager * supports JSON and YAML documents. JSON is the default format.

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

Specify a new target type for the document.

*/ inline const Aws::String& GetTargetType() const{ return m_targetType; } /** *

Specify a new target type for the document.

*/ inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; } /** *

Specify a new target type for the document.

*/ inline void SetTargetType(const Aws::String& value) { m_targetTypeHasBeenSet = true; m_targetType = value; } /** *

Specify a new target type for the document.

*/ inline void SetTargetType(Aws::String&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); } /** *

Specify a new target type for the document.

*/ inline void SetTargetType(const char* value) { m_targetTypeHasBeenSet = true; m_targetType.assign(value); } /** *

Specify a new target type for the document.

*/ inline UpdateDocumentRequest& WithTargetType(const Aws::String& value) { SetTargetType(value); return *this;} /** *

Specify a new target type for the document.

*/ inline UpdateDocumentRequest& WithTargetType(Aws::String&& value) { SetTargetType(std::move(value)); return *this;} /** *

Specify a new target type for the document.

*/ inline UpdateDocumentRequest& WithTargetType(const char* value) { SetTargetType(value); return *this;} private: Aws::String m_content; bool m_contentHasBeenSet = false; Aws::Vector m_attachments; bool m_attachmentsHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_displayName; bool m_displayNameHasBeenSet = false; Aws::String m_versionName; bool m_versionNameHasBeenSet = false; Aws::String m_documentVersion; bool m_documentVersionHasBeenSet = false; DocumentFormat m_documentFormat; bool m_documentFormatHasBeenSet = false; Aws::String m_targetType; bool m_targetTypeHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws