/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace mgn { namespace Model { /** *

AWS Systems Manager Document.

See Also:

AWS API * Reference

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

User-friendly name for the AWS Systems Manager Document.

*/ inline const Aws::String& GetActionName() const{ return m_actionName; } /** *

User-friendly name for the AWS Systems Manager Document.

*/ inline bool ActionNameHasBeenSet() const { return m_actionNameHasBeenSet; } /** *

User-friendly name for the AWS Systems Manager Document.

*/ inline void SetActionName(const Aws::String& value) { m_actionNameHasBeenSet = true; m_actionName = value; } /** *

User-friendly name for the AWS Systems Manager Document.

*/ inline void SetActionName(Aws::String&& value) { m_actionNameHasBeenSet = true; m_actionName = std::move(value); } /** *

User-friendly name for the AWS Systems Manager Document.

*/ inline void SetActionName(const char* value) { m_actionNameHasBeenSet = true; m_actionName.assign(value); } /** *

User-friendly name for the AWS Systems Manager Document.

*/ inline SsmDocument& WithActionName(const Aws::String& value) { SetActionName(value); return *this;} /** *

User-friendly name for the AWS Systems Manager Document.

*/ inline SsmDocument& WithActionName(Aws::String&& value) { SetActionName(std::move(value)); return *this;} /** *

User-friendly name for the AWS Systems Manager Document.

*/ inline SsmDocument& WithActionName(const char* value) { SetActionName(value); return *this;} /** *

AWS Systems Manager Document external parameters.

*/ inline const Aws::Map& GetExternalParameters() const{ return m_externalParameters; } /** *

AWS Systems Manager Document external parameters.

*/ inline bool ExternalParametersHasBeenSet() const { return m_externalParametersHasBeenSet; } /** *

AWS Systems Manager Document external parameters.

*/ inline void SetExternalParameters(const Aws::Map& value) { m_externalParametersHasBeenSet = true; m_externalParameters = value; } /** *

AWS Systems Manager Document external parameters.

*/ inline void SetExternalParameters(Aws::Map&& value) { m_externalParametersHasBeenSet = true; m_externalParameters = std::move(value); } /** *

AWS Systems Manager Document external parameters.

*/ inline SsmDocument& WithExternalParameters(const Aws::Map& value) { SetExternalParameters(value); return *this;} /** *

AWS Systems Manager Document external parameters.

*/ inline SsmDocument& WithExternalParameters(Aws::Map&& value) { SetExternalParameters(std::move(value)); return *this;} /** *

AWS Systems Manager Document external parameters.

*/ inline SsmDocument& AddExternalParameters(const Aws::String& key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, value); return *this; } /** *

AWS Systems Manager Document external parameters.

*/ inline SsmDocument& AddExternalParameters(Aws::String&& key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::move(key), value); return *this; } /** *

AWS Systems Manager Document external parameters.

*/ inline SsmDocument& AddExternalParameters(const Aws::String& key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, std::move(value)); return *this; } /** *

AWS Systems Manager Document external parameters.

*/ inline SsmDocument& AddExternalParameters(Aws::String&& key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(std::move(key), std::move(value)); return *this; } /** *

AWS Systems Manager Document external parameters.

*/ inline SsmDocument& AddExternalParameters(const char* key, SsmExternalParameter&& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, std::move(value)); return *this; } /** *

AWS Systems Manager Document external parameters.

*/ inline SsmDocument& AddExternalParameters(const char* key, const SsmExternalParameter& value) { m_externalParametersHasBeenSet = true; m_externalParameters.emplace(key, value); return *this; } /** *

If true, Cutover will not be enabled if the document has failed.

*/ inline bool GetMustSucceedForCutover() const{ return m_mustSucceedForCutover; } /** *

If true, Cutover will not be enabled if the document has failed.

*/ inline bool MustSucceedForCutoverHasBeenSet() const { return m_mustSucceedForCutoverHasBeenSet; } /** *

If true, Cutover will not be enabled if the document has failed.

*/ inline void SetMustSucceedForCutover(bool value) { m_mustSucceedForCutoverHasBeenSet = true; m_mustSucceedForCutover = value; } /** *

If true, Cutover will not be enabled if the document has failed.

*/ inline SsmDocument& WithMustSucceedForCutover(bool value) { SetMustSucceedForCutover(value); return *this;} /** *

AWS Systems Manager Document parameters.

*/ inline const Aws::Map>& GetParameters() const{ return m_parameters; } /** *

AWS Systems Manager Document parameters.

*/ inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; } /** *

AWS Systems Manager Document parameters.

*/ inline void SetParameters(const Aws::Map>& value) { m_parametersHasBeenSet = true; m_parameters = value; } /** *

AWS Systems Manager Document parameters.

*/ inline void SetParameters(Aws::Map>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); } /** *

AWS Systems Manager Document parameters.

*/ inline SsmDocument& WithParameters(const Aws::Map>& value) { SetParameters(value); return *this;} /** *

AWS Systems Manager Document parameters.

*/ inline SsmDocument& WithParameters(Aws::Map>&& value) { SetParameters(std::move(value)); return *this;} /** *

AWS Systems Manager Document parameters.

*/ inline SsmDocument& AddParameters(const Aws::String& key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

AWS Systems Manager Document parameters.

*/ inline SsmDocument& AddParameters(Aws::String&& key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; } /** *

AWS Systems Manager Document parameters.

*/ inline SsmDocument& AddParameters(const Aws::String& key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

AWS Systems Manager Document parameters.

*/ inline SsmDocument& AddParameters(Aws::String&& key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; } /** *

AWS Systems Manager Document parameters.

*/ inline SsmDocument& AddParameters(const char* key, Aws::Vector&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; } /** *

AWS Systems Manager Document parameters.

*/ inline SsmDocument& AddParameters(const char* key, const Aws::Vector& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; } /** *

AWS Systems Manager Document name or full ARN.

*/ inline const Aws::String& GetSsmDocumentName() const{ return m_ssmDocumentName; } /** *

AWS Systems Manager Document name or full ARN.

*/ inline bool SsmDocumentNameHasBeenSet() const { return m_ssmDocumentNameHasBeenSet; } /** *

AWS Systems Manager Document name or full ARN.

*/ inline void SetSsmDocumentName(const Aws::String& value) { m_ssmDocumentNameHasBeenSet = true; m_ssmDocumentName = value; } /** *

AWS Systems Manager Document name or full ARN.

*/ inline void SetSsmDocumentName(Aws::String&& value) { m_ssmDocumentNameHasBeenSet = true; m_ssmDocumentName = std::move(value); } /** *

AWS Systems Manager Document name or full ARN.

*/ inline void SetSsmDocumentName(const char* value) { m_ssmDocumentNameHasBeenSet = true; m_ssmDocumentName.assign(value); } /** *

AWS Systems Manager Document name or full ARN.

*/ inline SsmDocument& WithSsmDocumentName(const Aws::String& value) { SetSsmDocumentName(value); return *this;} /** *

AWS Systems Manager Document name or full ARN.

*/ inline SsmDocument& WithSsmDocumentName(Aws::String&& value) { SetSsmDocumentName(std::move(value)); return *this;} /** *

AWS Systems Manager Document name or full ARN.

*/ inline SsmDocument& WithSsmDocumentName(const char* value) { SetSsmDocumentName(value); return *this;} /** *

AWS Systems Manager Document timeout seconds.

*/ inline int GetTimeoutSeconds() const{ return m_timeoutSeconds; } /** *

AWS Systems Manager Document timeout seconds.

*/ inline bool TimeoutSecondsHasBeenSet() const { return m_timeoutSecondsHasBeenSet; } /** *

AWS Systems Manager Document timeout seconds.

*/ inline void SetTimeoutSeconds(int value) { m_timeoutSecondsHasBeenSet = true; m_timeoutSeconds = value; } /** *

AWS Systems Manager Document timeout seconds.

*/ inline SsmDocument& WithTimeoutSeconds(int value) { SetTimeoutSeconds(value); return *this;} private: Aws::String m_actionName; bool m_actionNameHasBeenSet = false; Aws::Map m_externalParameters; bool m_externalParametersHasBeenSet = false; bool m_mustSucceedForCutover; bool m_mustSucceedForCutoverHasBeenSet = false; Aws::Map> m_parameters; bool m_parametersHasBeenSet = false; Aws::String m_ssmDocumentName; bool m_ssmDocumentNameHasBeenSet = false; int m_timeoutSeconds; bool m_timeoutSecondsHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws