/** * 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 Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace CloudFormation { namespace Model { /** *

Describes the target resources of a specific type in your import template * (for example, all AWS::S3::Bucket resources) and the properties you * can provide during the import to identify resources of that type.

See * Also:

AWS * API Reference

*/ class ResourceIdentifierSummary { public: AWS_CLOUDFORMATION_API ResourceIdentifierSummary(); AWS_CLOUDFORMATION_API ResourceIdentifierSummary(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API ResourceIdentifierSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The template resource type of the target resources, such as * AWS::S3::Bucket.

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

The template resource type of the target resources, such as * AWS::S3::Bucket.

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

The template resource type of the target resources, such as * AWS::S3::Bucket.

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

The template resource type of the target resources, such as * AWS::S3::Bucket.

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

The template resource type of the target resources, such as * AWS::S3::Bucket.

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

The template resource type of the target resources, such as * AWS::S3::Bucket.

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

The template resource type of the target resources, such as * AWS::S3::Bucket.

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

The template resource type of the target resources, such as * AWS::S3::Bucket.

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

The logical IDs of the target resources of the specified * ResourceType, as defined in the import template.

*/ inline const Aws::Vector& GetLogicalResourceIds() const{ return m_logicalResourceIds; } /** *

The logical IDs of the target resources of the specified * ResourceType, as defined in the import template.

*/ inline bool LogicalResourceIdsHasBeenSet() const { return m_logicalResourceIdsHasBeenSet; } /** *

The logical IDs of the target resources of the specified * ResourceType, as defined in the import template.

*/ inline void SetLogicalResourceIds(const Aws::Vector& value) { m_logicalResourceIdsHasBeenSet = true; m_logicalResourceIds = value; } /** *

The logical IDs of the target resources of the specified * ResourceType, as defined in the import template.

*/ inline void SetLogicalResourceIds(Aws::Vector&& value) { m_logicalResourceIdsHasBeenSet = true; m_logicalResourceIds = std::move(value); } /** *

The logical IDs of the target resources of the specified * ResourceType, as defined in the import template.

*/ inline ResourceIdentifierSummary& WithLogicalResourceIds(const Aws::Vector& value) { SetLogicalResourceIds(value); return *this;} /** *

The logical IDs of the target resources of the specified * ResourceType, as defined in the import template.

*/ inline ResourceIdentifierSummary& WithLogicalResourceIds(Aws::Vector&& value) { SetLogicalResourceIds(std::move(value)); return *this;} /** *

The logical IDs of the target resources of the specified * ResourceType, as defined in the import template.

*/ inline ResourceIdentifierSummary& AddLogicalResourceIds(const Aws::String& value) { m_logicalResourceIdsHasBeenSet = true; m_logicalResourceIds.push_back(value); return *this; } /** *

The logical IDs of the target resources of the specified * ResourceType, as defined in the import template.

*/ inline ResourceIdentifierSummary& AddLogicalResourceIds(Aws::String&& value) { m_logicalResourceIdsHasBeenSet = true; m_logicalResourceIds.push_back(std::move(value)); return *this; } /** *

The logical IDs of the target resources of the specified * ResourceType, as defined in the import template.

*/ inline ResourceIdentifierSummary& AddLogicalResourceIds(const char* value) { m_logicalResourceIdsHasBeenSet = true; m_logicalResourceIds.push_back(value); return *this; } /** *

The resource properties you can provide during the import to identify your * target resources. For example, BucketName is a possible identifier * property for AWS::S3::Bucket resources.

*/ inline const Aws::Vector& GetResourceIdentifiers() const{ return m_resourceIdentifiers; } /** *

The resource properties you can provide during the import to identify your * target resources. For example, BucketName is a possible identifier * property for AWS::S3::Bucket resources.

*/ inline bool ResourceIdentifiersHasBeenSet() const { return m_resourceIdentifiersHasBeenSet; } /** *

The resource properties you can provide during the import to identify your * target resources. For example, BucketName is a possible identifier * property for AWS::S3::Bucket resources.

*/ inline void SetResourceIdentifiers(const Aws::Vector& value) { m_resourceIdentifiersHasBeenSet = true; m_resourceIdentifiers = value; } /** *

The resource properties you can provide during the import to identify your * target resources. For example, BucketName is a possible identifier * property for AWS::S3::Bucket resources.

*/ inline void SetResourceIdentifiers(Aws::Vector&& value) { m_resourceIdentifiersHasBeenSet = true; m_resourceIdentifiers = std::move(value); } /** *

The resource properties you can provide during the import to identify your * target resources. For example, BucketName is a possible identifier * property for AWS::S3::Bucket resources.

*/ inline ResourceIdentifierSummary& WithResourceIdentifiers(const Aws::Vector& value) { SetResourceIdentifiers(value); return *this;} /** *

The resource properties you can provide during the import to identify your * target resources. For example, BucketName is a possible identifier * property for AWS::S3::Bucket resources.

*/ inline ResourceIdentifierSummary& WithResourceIdentifiers(Aws::Vector&& value) { SetResourceIdentifiers(std::move(value)); return *this;} /** *

The resource properties you can provide during the import to identify your * target resources. For example, BucketName is a possible identifier * property for AWS::S3::Bucket resources.

*/ inline ResourceIdentifierSummary& AddResourceIdentifiers(const Aws::String& value) { m_resourceIdentifiersHasBeenSet = true; m_resourceIdentifiers.push_back(value); return *this; } /** *

The resource properties you can provide during the import to identify your * target resources. For example, BucketName is a possible identifier * property for AWS::S3::Bucket resources.

*/ inline ResourceIdentifierSummary& AddResourceIdentifiers(Aws::String&& value) { m_resourceIdentifiersHasBeenSet = true; m_resourceIdentifiers.push_back(std::move(value)); return *this; } /** *

The resource properties you can provide during the import to identify your * target resources. For example, BucketName is a possible identifier * property for AWS::S3::Bucket resources.

*/ inline ResourceIdentifierSummary& AddResourceIdentifiers(const char* value) { m_resourceIdentifiersHasBeenSet = true; m_resourceIdentifiers.push_back(value); return *this; } private: Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Vector m_logicalResourceIds; bool m_logicalResourceIdsHasBeenSet = false; Aws::Vector m_resourceIdentifiers; bool m_resourceIdentifiersHasBeenSet = false; }; } // namespace Model } // namespace CloudFormation } // namespace Aws