/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace Route53 { namespace Model { /** *

A complex type that is an entry in an CidrCollection * array.

See Also:

AWS * API Reference

*/ class CollectionSummary { public: AWS_ROUTE53_API CollectionSummary(); AWS_ROUTE53_API CollectionSummary(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API CollectionSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ROUTE53_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The ARN of the collection summary. Can be used to reference the collection in * IAM policy or cross-account.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The ARN of the collection summary. Can be used to reference the collection in * IAM policy or cross-account.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The ARN of the collection summary. Can be used to reference the collection in * IAM policy or cross-account.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The ARN of the collection summary. Can be used to reference the collection in * IAM policy or cross-account.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The ARN of the collection summary. Can be used to reference the collection in * IAM policy or cross-account.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The ARN of the collection summary. Can be used to reference the collection in * IAM policy or cross-account.

*/ inline CollectionSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The ARN of the collection summary. Can be used to reference the collection in * IAM policy or cross-account.

*/ inline CollectionSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The ARN of the collection summary. Can be used to reference the collection in * IAM policy or cross-account.

*/ inline CollectionSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *

Unique ID for the CIDR collection.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

Unique ID for the CIDR collection.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

Unique ID for the CIDR collection.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

Unique ID for the CIDR collection.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

Unique ID for the CIDR collection.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

Unique ID for the CIDR collection.

*/ inline CollectionSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

Unique ID for the CIDR collection.

*/ inline CollectionSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

Unique ID for the CIDR collection.

*/ inline CollectionSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The name of a CIDR collection.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of a CIDR collection.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of a CIDR collection.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of a CIDR collection.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of a CIDR collection.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of a CIDR collection.

*/ inline CollectionSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of a CIDR collection.

*/ inline CollectionSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of a CIDR collection.

*/ inline CollectionSummary& WithName(const char* value) { SetName(value); return *this;} /** *

A sequential counter that Route 53 sets to 1 when you create a CIDR * collection and increments by 1 each time you update settings for the CIDR * collection.

*/ inline long long GetVersion() const{ return m_version; } /** *

A sequential counter that Route 53 sets to 1 when you create a CIDR * collection and increments by 1 each time you update settings for the CIDR * collection.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

A sequential counter that Route 53 sets to 1 when you create a CIDR * collection and increments by 1 each time you update settings for the CIDR * collection.

*/ inline void SetVersion(long long value) { m_versionHasBeenSet = true; m_version = value; } /** *

A sequential counter that Route 53 sets to 1 when you create a CIDR * collection and increments by 1 each time you update settings for the CIDR * collection.

*/ inline CollectionSummary& WithVersion(long long value) { SetVersion(value); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; long long m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace Route53 } // namespace Aws