AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/route53-recovery-readiness/Route53RecoveryReadiness_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53-recovery-readiness/model/DNSTargetResource.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Route53RecoveryReadiness
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ROUTE53RECOVERYREADINESS_API Resource();
37 AWS_ROUTE53RECOVERYREADINESS_API Resource(Aws::Utils::Json::JsonView jsonValue);
38 AWS_ROUTE53RECOVERYREADINESS_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetComponentId() const{ return m_componentId; }
48 inline bool ComponentIdHasBeenSet() const { return m_componentIdHasBeenSet; }
49 inline void SetComponentId(const Aws::String& value) { m_componentIdHasBeenSet = true; m_componentId = value; }
50 inline void SetComponentId(Aws::String&& value) { m_componentIdHasBeenSet = true; m_componentId = std::move(value); }
51 inline void SetComponentId(const char* value) { m_componentIdHasBeenSet = true; m_componentId.assign(value); }
52 inline Resource& WithComponentId(const Aws::String& value) { SetComponentId(value); return *this;}
53 inline Resource& WithComponentId(Aws::String&& value) { SetComponentId(std::move(value)); return *this;}
54 inline Resource& WithComponentId(const char* value) { SetComponentId(value); return *this;}
56
58
61 inline const DNSTargetResource& GetDnsTargetResource() const{ return m_dnsTargetResource; }
62 inline bool DnsTargetResourceHasBeenSet() const { return m_dnsTargetResourceHasBeenSet; }
63 inline void SetDnsTargetResource(const DNSTargetResource& value) { m_dnsTargetResourceHasBeenSet = true; m_dnsTargetResource = value; }
64 inline void SetDnsTargetResource(DNSTargetResource&& value) { m_dnsTargetResourceHasBeenSet = true; m_dnsTargetResource = std::move(value); }
65 inline Resource& WithDnsTargetResource(const DNSTargetResource& value) { SetDnsTargetResource(value); return *this;}
66 inline Resource& WithDnsTargetResource(DNSTargetResource&& value) { SetDnsTargetResource(std::move(value)); return *this;}
68
70
74 inline const Aws::Vector<Aws::String>& GetReadinessScopes() const{ return m_readinessScopes; }
75 inline bool ReadinessScopesHasBeenSet() const { return m_readinessScopesHasBeenSet; }
76 inline void SetReadinessScopes(const Aws::Vector<Aws::String>& value) { m_readinessScopesHasBeenSet = true; m_readinessScopes = value; }
77 inline void SetReadinessScopes(Aws::Vector<Aws::String>&& value) { m_readinessScopesHasBeenSet = true; m_readinessScopes = std::move(value); }
78 inline Resource& WithReadinessScopes(const Aws::Vector<Aws::String>& value) { SetReadinessScopes(value); return *this;}
79 inline Resource& WithReadinessScopes(Aws::Vector<Aws::String>&& value) { SetReadinessScopes(std::move(value)); return *this;}
80 inline Resource& AddReadinessScopes(const Aws::String& value) { m_readinessScopesHasBeenSet = true; m_readinessScopes.push_back(value); return *this; }
81 inline Resource& AddReadinessScopes(Aws::String&& value) { m_readinessScopesHasBeenSet = true; m_readinessScopes.push_back(std::move(value)); return *this; }
82 inline Resource& AddReadinessScopes(const char* value) { m_readinessScopesHasBeenSet = true; m_readinessScopes.push_back(value); return *this; }
84
86
89 inline const Aws::String& GetResourceArn() const{ return m_resourceArn; }
90 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
91 inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; }
92 inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); }
93 inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); }
94 inline Resource& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;}
95 inline Resource& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;}
96 inline Resource& WithResourceArn(const char* value) { SetResourceArn(value); return *this;}
98 private:
99
100 Aws::String m_componentId;
101 bool m_componentIdHasBeenSet = false;
102
103 DNSTargetResource m_dnsTargetResource;
104 bool m_dnsTargetResourceHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_readinessScopes;
107 bool m_readinessScopesHasBeenSet = false;
108
109 Aws::String m_resourceArn;
110 bool m_resourceArnHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Route53RecoveryReadiness
115} // namespace Aws
const Aws::Vector< Aws::String > & GetReadinessScopes() const
Definition Resource.h:74
Resource & WithDnsTargetResource(DNSTargetResource &&value)
Definition Resource.h:66
Resource & WithResourceArn(Aws::String &&value)
Definition Resource.h:95
void SetReadinessScopes(Aws::Vector< Aws::String > &&value)
Definition Resource.h:77
void SetReadinessScopes(const Aws::Vector< Aws::String > &value)
Definition Resource.h:76
void SetDnsTargetResource(const DNSTargetResource &value)
Definition Resource.h:63
Resource & WithComponentId(const char *value)
Definition Resource.h:54
AWS_ROUTE53RECOVERYREADINESS_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
const DNSTargetResource & GetDnsTargetResource() const
Definition Resource.h:61
Resource & WithComponentId(Aws::String &&value)
Definition Resource.h:53
Resource & AddReadinessScopes(Aws::String &&value)
Definition Resource.h:81
AWS_ROUTE53RECOVERYREADINESS_API Resource(Aws::Utils::Json::JsonView jsonValue)
void SetResourceArn(Aws::String &&value)
Definition Resource.h:92
void SetComponentId(const Aws::String &value)
Definition Resource.h:49
const Aws::String & GetResourceArn() const
Definition Resource.h:89
Resource & WithReadinessScopes(Aws::Vector< Aws::String > &&value)
Definition Resource.h:79
const Aws::String & GetComponentId() const
Definition Resource.h:47
AWS_ROUTE53RECOVERYREADINESS_API Aws::Utils::Json::JsonValue Jsonize() const
Resource & AddReadinessScopes(const char *value)
Definition Resource.h:82
void SetResourceArn(const Aws::String &value)
Definition Resource.h:91
Resource & WithReadinessScopes(const Aws::Vector< Aws::String > &value)
Definition Resource.h:78
Resource & AddReadinessScopes(const Aws::String &value)
Definition Resource.h:80
AWS_ROUTE53RECOVERYREADINESS_API Resource()
Resource & WithComponentId(const Aws::String &value)
Definition Resource.h:52
Resource & WithDnsTargetResource(const DNSTargetResource &value)
Definition Resource.h:65
Resource & WithResourceArn(const Aws::String &value)
Definition Resource.h:94
Resource & WithResourceArn(const char *value)
Definition Resource.h:96
void SetDnsTargetResource(DNSTargetResource &&value)
Definition Resource.h:64
void SetComponentId(Aws::String &&value)
Definition Resource.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue