/** * 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 #include namespace Aws { namespace SSM { namespace Model { /** */ class CreateOpsMetadataRequest : public SSMRequest { public: AWS_SSM_API CreateOpsMetadataRequest(); // 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 "CreateOpsMetadata"; } AWS_SSM_API Aws::String SerializePayload() const override; AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A resource ID for a new Application Manager application.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

A resource ID for a new Application Manager application.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

A resource ID for a new Application Manager application.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

A resource ID for a new Application Manager application.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

A resource ID for a new Application Manager application.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

A resource ID for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

A resource ID for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

A resource ID for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

Metadata for a new Application Manager application.

*/ inline const Aws::Map& GetMetadata() const{ return m_metadata; } /** *

Metadata for a new Application Manager application.

*/ inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; } /** *

Metadata for a new Application Manager application.

*/ inline void SetMetadata(const Aws::Map& value) { m_metadataHasBeenSet = true; m_metadata = value; } /** *

Metadata for a new Application Manager application.

*/ inline void SetMetadata(Aws::Map&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); } /** *

Metadata for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& WithMetadata(const Aws::Map& value) { SetMetadata(value); return *this;} /** *

Metadata for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& WithMetadata(Aws::Map&& value) { SetMetadata(std::move(value)); return *this;} /** *

Metadata for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& AddMetadata(const Aws::String& key, const MetadataValue& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *

Metadata for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& AddMetadata(Aws::String&& key, const MetadataValue& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; } /** *

Metadata for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& AddMetadata(const Aws::String& key, MetadataValue&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *

Metadata for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& AddMetadata(Aws::String&& key, MetadataValue&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; } /** *

Metadata for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& AddMetadata(const char* key, MetadataValue&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; } /** *

Metadata for a new Application Manager application.

*/ inline CreateOpsMetadataRequest& AddMetadata(const char* key, const MetadataValue& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; } /** *

Optional metadata that you assign to a resource. You can specify a maximum of * five tags for an OpsMetadata object. Tags enable you to categorize a resource in * different ways, such as by purpose, owner, or environment. For example, you * might want to tag an OpsMetadata object to identify an environment or target * Amazon Web Services Region. In this case, you could specify the following * key-value pairs:

  • Key=Environment,Value=Production *

  • Key=Region,Value=us-east-2

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Optional metadata that you assign to a resource. You can specify a maximum of * five tags for an OpsMetadata object. Tags enable you to categorize a resource in * different ways, such as by purpose, owner, or environment. For example, you * might want to tag an OpsMetadata object to identify an environment or target * Amazon Web Services Region. In this case, you could specify the following * key-value pairs:

  • Key=Environment,Value=Production *

  • Key=Region,Value=us-east-2

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Optional metadata that you assign to a resource. You can specify a maximum of * five tags for an OpsMetadata object. Tags enable you to categorize a resource in * different ways, such as by purpose, owner, or environment. For example, you * might want to tag an OpsMetadata object to identify an environment or target * Amazon Web Services Region. In this case, you could specify the following * key-value pairs:

  • Key=Environment,Value=Production *

  • Key=Region,Value=us-east-2

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Optional metadata that you assign to a resource. You can specify a maximum of * five tags for an OpsMetadata object. Tags enable you to categorize a resource in * different ways, such as by purpose, owner, or environment. For example, you * might want to tag an OpsMetadata object to identify an environment or target * Amazon Web Services Region. In this case, you could specify the following * key-value pairs:

  • Key=Environment,Value=Production *

  • Key=Region,Value=us-east-2

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Optional metadata that you assign to a resource. You can specify a maximum of * five tags for an OpsMetadata object. Tags enable you to categorize a resource in * different ways, such as by purpose, owner, or environment. For example, you * might want to tag an OpsMetadata object to identify an environment or target * Amazon Web Services Region. In this case, you could specify the following * key-value pairs:

  • Key=Environment,Value=Production *

  • Key=Region,Value=us-east-2

*/ inline CreateOpsMetadataRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Optional metadata that you assign to a resource. You can specify a maximum of * five tags for an OpsMetadata object. Tags enable you to categorize a resource in * different ways, such as by purpose, owner, or environment. For example, you * might want to tag an OpsMetadata object to identify an environment or target * Amazon Web Services Region. In this case, you could specify the following * key-value pairs:

  • Key=Environment,Value=Production *

  • Key=Region,Value=us-east-2

*/ inline CreateOpsMetadataRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Optional metadata that you assign to a resource. You can specify a maximum of * five tags for an OpsMetadata object. Tags enable you to categorize a resource in * different ways, such as by purpose, owner, or environment. For example, you * might want to tag an OpsMetadata object to identify an environment or target * Amazon Web Services Region. In this case, you could specify the following * key-value pairs:

  • Key=Environment,Value=Production *

  • Key=Region,Value=us-east-2

*/ inline CreateOpsMetadataRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Optional metadata that you assign to a resource. You can specify a maximum of * five tags for an OpsMetadata object. Tags enable you to categorize a resource in * different ways, such as by purpose, owner, or environment. For example, you * might want to tag an OpsMetadata object to identify an environment or target * Amazon Web Services Region. In this case, you could specify the following * key-value pairs:

  • Key=Environment,Value=Production *

  • Key=Region,Value=us-east-2

*/ inline CreateOpsMetadataRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::Map m_metadata; bool m_metadataHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws