/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Route53RecoveryReadiness { namespace Model { /** *

The resource element of a resource set.

See Also:

AWS * API Reference

*/ class Resource { public: AWS_ROUTE53RECOVERYREADINESS_API Resource(); AWS_ROUTE53RECOVERYREADINESS_API Resource(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RECOVERYREADINESS_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The component identifier of the resource, generated when DNS target resource * is used.

*/ inline const Aws::String& GetComponentId() const{ return m_componentId; } /** *

The component identifier of the resource, generated when DNS target resource * is used.

*/ inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; } /** *

The component identifier of the resource, generated when DNS target resource * is used.

*/ inline void SetComponentId(const Aws::String& value) { m_componentIdHasBeenSet = true; m_componentId = value; } /** *

The component identifier of the resource, generated when DNS target resource * is used.

*/ inline void SetComponentId(Aws::String&& value) { m_componentIdHasBeenSet = true; m_componentId = std::move(value); } /** *

The component identifier of the resource, generated when DNS target resource * is used.

*/ inline void SetComponentId(const char* value) { m_componentIdHasBeenSet = true; m_componentId.assign(value); } /** *

The component identifier of the resource, generated when DNS target resource * is used.

*/ inline Resource& WithComponentId(const Aws::String& value) { SetComponentId(value); return *this;} /** *

The component identifier of the resource, generated when DNS target resource * is used.

*/ inline Resource& WithComponentId(Aws::String&& value) { SetComponentId(std::move(value)); return *this;} /** *

The component identifier of the resource, generated when DNS target resource * is used.

*/ inline Resource& WithComponentId(const char* value) { SetComponentId(value); return *this;} /** *

The DNS target resource.

*/ inline const DNSTargetResource& GetDnsTargetResource() const{ return m_dnsTargetResource; } /** *

The DNS target resource.

*/ inline bool DnsTargetResourceHasBeenSet() const { return m_dnsTargetResourceHasBeenSet; } /** *

The DNS target resource.

*/ inline void SetDnsTargetResource(const DNSTargetResource& value) { m_dnsTargetResourceHasBeenSet = true; m_dnsTargetResource = value; } /** *

The DNS target resource.

*/ inline void SetDnsTargetResource(DNSTargetResource&& value) { m_dnsTargetResourceHasBeenSet = true; m_dnsTargetResource = std::move(value); } /** *

The DNS target resource.

*/ inline Resource& WithDnsTargetResource(const DNSTargetResource& value) { SetDnsTargetResource(value); return *this;} /** *

The DNS target resource.

*/ inline Resource& WithDnsTargetResource(DNSTargetResource&& value) { SetDnsTargetResource(std::move(value)); return *this;} /** *

A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this * resource is contained within.

*/ inline const Aws::Vector& GetReadinessScopes() const{ return m_readinessScopes; } /** *

A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this * resource is contained within.

*/ inline bool ReadinessScopesHasBeenSet() const { return m_readinessScopesHasBeenSet; } /** *

A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this * resource is contained within.

*/ inline void SetReadinessScopes(const Aws::Vector& value) { m_readinessScopesHasBeenSet = true; m_readinessScopes = value; } /** *

A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this * resource is contained within.

*/ inline void SetReadinessScopes(Aws::Vector&& value) { m_readinessScopesHasBeenSet = true; m_readinessScopes = std::move(value); } /** *

A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this * resource is contained within.

*/ inline Resource& WithReadinessScopes(const Aws::Vector& value) { SetReadinessScopes(value); return *this;} /** *

A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this * resource is contained within.

*/ inline Resource& WithReadinessScopes(Aws::Vector&& value) { SetReadinessScopes(std::move(value)); return *this;} /** *

A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this * resource is contained within.

*/ inline Resource& AddReadinessScopes(const Aws::String& value) { m_readinessScopesHasBeenSet = true; m_readinessScopes.push_back(value); return *this; } /** *

A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this * resource is contained within.

*/ inline Resource& AddReadinessScopes(Aws::String&& value) { m_readinessScopesHasBeenSet = true; m_readinessScopes.push_back(std::move(value)); return *this; } /** *

A list of recovery group Amazon Resource Names (ARNs) and cell ARNs that this * resource is contained within.

*/ inline Resource& AddReadinessScopes(const char* value) { m_readinessScopesHasBeenSet = true; m_readinessScopes.push_back(value); return *this; } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline Resource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline Resource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the Amazon Web Services resource.

*/ inline Resource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} private: Aws::String m_componentId; bool m_componentIdHasBeenSet = false; DNSTargetResource m_dnsTargetResource; bool m_dnsTargetResourceHasBeenSet = false; Aws::Vector m_readinessScopes; bool m_readinessScopesHasBeenSet = false; Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; }; } // namespace Model } // namespace Route53RecoveryReadiness } // namespace Aws