AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
PhysicalResourceId.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
9#include <aws/resiliencehub/model/PhysicalIdentifierType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResilienceHub {
21namespace Model {
22
29 public:
30 AWS_RESILIENCEHUB_API PhysicalResourceId() = default;
31 AWS_RESILIENCEHUB_API PhysicalResourceId(Aws::Utils::Json::JsonView jsonValue);
32 AWS_RESILIENCEHUB_API PhysicalResourceId& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
40 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
41 template <typename AwsAccountIdT = Aws::String>
42 void SetAwsAccountId(AwsAccountIdT&& value) {
43 m_awsAccountIdHasBeenSet = true;
44 m_awsAccountId = std::forward<AwsAccountIdT>(value);
45 }
46 template <typename AwsAccountIdT = Aws::String>
47 PhysicalResourceId& WithAwsAccountId(AwsAccountIdT&& value) {
48 SetAwsAccountId(std::forward<AwsAccountIdT>(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 PhysicalResourceId& WithAwsRegion(AwsRegionT&& value) {
66 SetAwsRegion(std::forward<AwsRegionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetIdentifier() const { return m_identifier; }
76 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
77 template <typename IdentifierT = Aws::String>
78 void SetIdentifier(IdentifierT&& value) {
79 m_identifierHasBeenSet = true;
80 m_identifier = std::forward<IdentifierT>(value);
81 }
82 template <typename IdentifierT = Aws::String>
83 PhysicalResourceId& WithIdentifier(IdentifierT&& value) {
84 SetIdentifier(std::forward<IdentifierT>(value));
85 return *this;
86 }
88
90
121 inline PhysicalIdentifierType GetType() const { return m_type; }
122 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
123 inline void SetType(PhysicalIdentifierType value) {
124 m_typeHasBeenSet = true;
125 m_type = value;
126 }
128 SetType(value);
129 return *this;
130 }
132 private:
133 Aws::String m_awsAccountId;
134
135 Aws::String m_awsRegion;
136
137 Aws::String m_identifier;
138
140 bool m_awsAccountIdHasBeenSet = false;
141 bool m_awsRegionHasBeenSet = false;
142 bool m_identifierHasBeenSet = false;
143 bool m_typeHasBeenSet = false;
144};
145
146} // namespace Model
147} // namespace ResilienceHub
148} // namespace Aws
PhysicalResourceId & WithAwsRegion(AwsRegionT &&value)
PhysicalResourceId & WithAwsAccountId(AwsAccountIdT &&value)
void SetType(PhysicalIdentifierType value)
PhysicalResourceId & WithIdentifier(IdentifierT &&value)
AWS_RESILIENCEHUB_API PhysicalResourceId(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUB_API PhysicalResourceId()=default
AWS_RESILIENCEHUB_API PhysicalResourceId & operator=(Aws::Utils::Json::JsonView jsonValue)
PhysicalResourceId & WithType(PhysicalIdentifierType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue