AWS SDK for C++

AWS SDK for C++ Version 1.11.820

Loading...
Searching...
No Matches
Resource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace resiliencehubv2 {
20namespace Model {
21
28class Resource {
29 public:
30 AWS_RESILIENCEHUBV2_API Resource() = default;
31 AWS_RESILIENCEHUBV2_API Resource(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUBV2_API Resource& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetIdentifier() const { return m_identifier; }
40 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
41 template <typename IdentifierT = Aws::String>
42 void SetIdentifier(IdentifierT&& value) {
43 m_identifierHasBeenSet = true;
44 m_identifier = std::forward<IdentifierT>(value);
45 }
46 template <typename IdentifierT = Aws::String>
47 Resource& WithIdentifier(IdentifierT&& value) {
48 SetIdentifier(std::forward<IdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAwsRegion() const { return m_awsRegion; }
58 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
59 template <typename AwsRegionT = Aws::String>
60 void SetAwsRegion(AwsRegionT&& value) {
61 m_awsRegionHasBeenSet = true;
62 m_awsRegion = std::forward<AwsRegionT>(value);
63 }
64 template <typename AwsRegionT = Aws::String>
65 Resource& WithAwsRegion(AwsRegionT&& value) {
66 SetAwsRegion(std::forward<AwsRegionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
76 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
77 template <typename AwsAccountIdT = Aws::String>
78 void SetAwsAccountId(AwsAccountIdT&& value) {
79 m_awsAccountIdHasBeenSet = true;
80 m_awsAccountId = std::forward<AwsAccountIdT>(value);
81 }
82 template <typename AwsAccountIdT = Aws::String>
83 Resource& WithAwsAccountId(AwsAccountIdT&& value) {
84 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetResourceType() const { return m_resourceType; }
94 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
95 template <typename ResourceTypeT = Aws::String>
96 void SetResourceType(ResourceTypeT&& value) {
97 m_resourceTypeHasBeenSet = true;
98 m_resourceType = std::forward<ResourceTypeT>(value);
99 }
100 template <typename ResourceTypeT = Aws::String>
101 Resource& WithResourceType(ResourceTypeT&& value) {
102 SetResourceType(std::forward<ResourceTypeT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_identifier;
108
109 Aws::String m_awsRegion;
110
111 Aws::String m_awsAccountId;
112
113 Aws::String m_resourceType;
114 bool m_identifierHasBeenSet = false;
115 bool m_awsRegionHasBeenSet = false;
116 bool m_awsAccountIdHasBeenSet = false;
117 bool m_resourceTypeHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace resiliencehubv2
122} // namespace Aws
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetIdentifier() const
Definition Resource.h:39
Resource & WithAwsRegion(AwsRegionT &&value)
Definition Resource.h:65
AWS_RESILIENCEHUBV2_API Resource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAwsAccountId() const
Definition Resource.h:75
Resource & WithIdentifier(IdentifierT &&value)
Definition Resource.h:47
Resource & WithAwsAccountId(AwsAccountIdT &&value)
Definition Resource.h:83
void SetIdentifier(IdentifierT &&value)
Definition Resource.h:42
const Aws::String & GetAwsRegion() const
Definition Resource.h:57
AWS_RESILIENCEHUBV2_API Resource()=default
void SetResourceType(ResourceTypeT &&value)
Definition Resource.h:96
void SetAwsAccountId(AwsAccountIdT &&value)
Definition Resource.h:78
Resource & WithResourceType(ResourceTypeT &&value)
Definition Resource.h:101
AWS_RESILIENCEHUBV2_API Resource(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceType() const
Definition Resource.h:93
void SetAwsRegion(AwsRegionT &&value)
Definition Resource.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue