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

The type of the resource. The custom resource type must be registered with * CloudFormation.

You cannot use the organization names “amzn”, * “amazon���, “alexa”, “custom” with custom resource types. It is the first part * of the ResourceType up to the first ::.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The type of the resource. The custom resource type must be registered with * CloudFormation.

You cannot use the organization names “amzn”, * “amazon���, “alexa”, “custom” with custom resource types. It is the first part * of the ResourceType up to the first ::.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The type of the resource. The custom resource type must be registered with * CloudFormation.

You cannot use the organization names “amzn”, * “amazon���, “alexa”, “custom” with custom resource types. It is the first part * of the ResourceType up to the first ::.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The type of the resource. The custom resource type must be registered with * CloudFormation.

You cannot use the organization names “amzn”, * “amazon���, “alexa”, “custom” with custom resource types. It is the first part * of the ResourceType up to the first ::.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The type of the resource. The custom resource type must be registered with * CloudFormation.

You cannot use the organization names “amzn”, * “amazon���, “alexa”, “custom” with custom resource types. It is the first part * of the ResourceType up to the first ::.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The type of the resource. The custom resource type must be registered with * CloudFormation.

You cannot use the organization names “amzn”, * “amazon���, “alexa”, “custom” with custom resource types. It is the first part * of the ResourceType up to the first ::.

*/ inline PutResourceConfigRequest& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The type of the resource. The custom resource type must be registered with * CloudFormation.

You cannot use the organization names “amzn”, * “amazon���, “alexa”, “custom” with custom resource types. It is the first part * of the ResourceType up to the first ::.

*/ inline PutResourceConfigRequest& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The type of the resource. The custom resource type must be registered with * CloudFormation.

You cannot use the organization names “amzn”, * “amazon���, “alexa”, “custom” with custom resource types. It is the first part * of the ResourceType up to the first ::.

*/ inline PutResourceConfigRequest& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *

Version of the schema registered for the ResourceType in CloudFormation.

*/ inline const Aws::String& GetSchemaVersionId() const{ return m_schemaVersionId; } /** *

Version of the schema registered for the ResourceType in CloudFormation.

*/ inline bool SchemaVersionIdHasBeenSet() const { return m_schemaVersionIdHasBeenSet; } /** *

Version of the schema registered for the ResourceType in CloudFormation.

*/ inline void SetSchemaVersionId(const Aws::String& value) { m_schemaVersionIdHasBeenSet = true; m_schemaVersionId = value; } /** *

Version of the schema registered for the ResourceType in CloudFormation.

*/ inline void SetSchemaVersionId(Aws::String&& value) { m_schemaVersionIdHasBeenSet = true; m_schemaVersionId = std::move(value); } /** *

Version of the schema registered for the ResourceType in CloudFormation.

*/ inline void SetSchemaVersionId(const char* value) { m_schemaVersionIdHasBeenSet = true; m_schemaVersionId.assign(value); } /** *

Version of the schema registered for the ResourceType in CloudFormation.

*/ inline PutResourceConfigRequest& WithSchemaVersionId(const Aws::String& value) { SetSchemaVersionId(value); return *this;} /** *

Version of the schema registered for the ResourceType in CloudFormation.

*/ inline PutResourceConfigRequest& WithSchemaVersionId(Aws::String&& value) { SetSchemaVersionId(std::move(value)); return *this;} /** *

Version of the schema registered for the ResourceType in CloudFormation.

*/ inline PutResourceConfigRequest& WithSchemaVersionId(const char* value) { SetSchemaVersionId(value); return *this;} /** *

Unique identifier of the resource.

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

Unique identifier of the resource.

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

Unique identifier of the resource.

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

Unique identifier of the resource.

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

Unique identifier of the resource.

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

Unique identifier of the resource.

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

Unique identifier of the resource.

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

Unique identifier of the resource.

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

Name of the resource.

*/ inline const Aws::String& GetResourceName() const{ return m_resourceName; } /** *

Name of the resource.

*/ inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } /** *

Name of the resource.

*/ inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } /** *

Name of the resource.

*/ inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } /** *

Name of the resource.

*/ inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } /** *

Name of the resource.

*/ inline PutResourceConfigRequest& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;} /** *

Name of the resource.

*/ inline PutResourceConfigRequest& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;} /** *

Name of the resource.

*/ inline PutResourceConfigRequest& WithResourceName(const char* value) { SetResourceName(value); return *this;} /** *

The configuration object of the resource in valid JSON format. It must match * the schema registered with CloudFormation.

The configuration JSON * must not exceed 64 KB.

*/ inline const Aws::String& GetConfiguration() const{ return m_configuration; } /** *

The configuration object of the resource in valid JSON format. It must match * the schema registered with CloudFormation.

The configuration JSON * must not exceed 64 KB.

*/ inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } /** *

The configuration object of the resource in valid JSON format. It must match * the schema registered with CloudFormation.

The configuration JSON * must not exceed 64 KB.

*/ inline void SetConfiguration(const Aws::String& value) { m_configurationHasBeenSet = true; m_configuration = value; } /** *

The configuration object of the resource in valid JSON format. It must match * the schema registered with CloudFormation.

The configuration JSON * must not exceed 64 KB.

*/ inline void SetConfiguration(Aws::String&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } /** *

The configuration object of the resource in valid JSON format. It must match * the schema registered with CloudFormation.

The configuration JSON * must not exceed 64 KB.

*/ inline void SetConfiguration(const char* value) { m_configurationHasBeenSet = true; m_configuration.assign(value); } /** *

The configuration object of the resource in valid JSON format. It must match * the schema registered with CloudFormation.

The configuration JSON * must not exceed 64 KB.

*/ inline PutResourceConfigRequest& WithConfiguration(const Aws::String& value) { SetConfiguration(value); return *this;} /** *

The configuration object of the resource in valid JSON format. It must match * the schema registered with CloudFormation.

The configuration JSON * must not exceed 64 KB.

*/ inline PutResourceConfigRequest& WithConfiguration(Aws::String&& value) { SetConfiguration(std::move(value)); return *this;} /** *

The configuration object of the resource in valid JSON format. It must match * the schema registered with CloudFormation.

The configuration JSON * must not exceed 64 KB.

*/ inline PutResourceConfigRequest& WithConfiguration(const char* value) { SetConfiguration(value); return *this;} /** *

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

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

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

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

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

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

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

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

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

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

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

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

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

*/ inline PutResourceConfigRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

*/ inline PutResourceConfigRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

*/ inline PutResourceConfigRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

*/ inline PutResourceConfigRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

*/ inline PutResourceConfigRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

*/ inline PutResourceConfigRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

Tags associated with the resource.

This field is not to be * confused with the Amazon Web Services-wide tag feature for Amazon Web Services * resources. Tags for PutResourceConfig are tags that you supply for * the configuration items of your custom resources.

*/ inline PutResourceConfigRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_schemaVersionId; bool m_schemaVersionIdHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_resourceName; bool m_resourceNameHasBeenSet = false; Aws::String m_configuration; bool m_configurationHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ConfigService } // namespace Aws