/** * 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 EC2 { namespace Model { /** *

Describes a resource statement.

See Also:

AWS * API Reference

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

The resources.

*/ inline const Aws::Vector& GetResources() const{ return m_resources; } /** *

The resources.

*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

The resources.

*/ inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } /** *

The resources.

*/ inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } /** *

The resources.

*/ inline ResourceStatement& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} /** *

The resources.

*/ inline ResourceStatement& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} /** *

The resources.

*/ inline ResourceStatement& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

The resources.

*/ inline ResourceStatement& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } /** *

The resources.

*/ inline ResourceStatement& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

The resource types.

*/ inline const Aws::Vector& GetResourceTypes() const{ return m_resourceTypes; } /** *

The resource types.

*/ inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; } /** *

The resource types.

*/ inline void SetResourceTypes(const Aws::Vector& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; } /** *

The resource types.

*/ inline void SetResourceTypes(Aws::Vector&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::move(value); } /** *

The resource types.

*/ inline ResourceStatement& WithResourceTypes(const Aws::Vector& value) { SetResourceTypes(value); return *this;} /** *

The resource types.

*/ inline ResourceStatement& WithResourceTypes(Aws::Vector&& value) { SetResourceTypes(std::move(value)); return *this;} /** *

The resource types.

*/ inline ResourceStatement& AddResourceTypes(const Aws::String& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; } /** *

The resource types.

*/ inline ResourceStatement& AddResourceTypes(Aws::String&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(std::move(value)); return *this; } /** *

The resource types.

*/ inline ResourceStatement& AddResourceTypes(const char* value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; } private: Aws::Vector m_resources; bool m_resourcesHasBeenSet = false; Aws::Vector m_resourceTypes; bool m_resourceTypesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws