AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
PhysicalResourceId.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehub/model/PhysicalIdentifierType.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ResilienceHub
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_RESILIENCEHUB_API PhysicalResourceId();
36 AWS_RESILIENCEHUB_API PhysicalResourceId(Aws::Utils::Json::JsonView jsonValue);
37 AWS_RESILIENCEHUB_API PhysicalResourceId& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
46 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
47 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
48 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
49 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
50 inline PhysicalResourceId& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
51 inline PhysicalResourceId& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
52 inline PhysicalResourceId& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
54
56
59 inline const Aws::String& GetAwsRegion() const{ return m_awsRegion; }
60 inline bool AwsRegionHasBeenSet() const { return m_awsRegionHasBeenSet; }
61 inline void SetAwsRegion(const Aws::String& value) { m_awsRegionHasBeenSet = true; m_awsRegion = value; }
62 inline void SetAwsRegion(Aws::String&& value) { m_awsRegionHasBeenSet = true; m_awsRegion = std::move(value); }
63 inline void SetAwsRegion(const char* value) { m_awsRegionHasBeenSet = true; m_awsRegion.assign(value); }
64 inline PhysicalResourceId& WithAwsRegion(const Aws::String& value) { SetAwsRegion(value); return *this;}
65 inline PhysicalResourceId& WithAwsRegion(Aws::String&& value) { SetAwsRegion(std::move(value)); return *this;}
66 inline PhysicalResourceId& WithAwsRegion(const char* value) { SetAwsRegion(value); return *this;}
68
70
73 inline const Aws::String& GetIdentifier() const{ return m_identifier; }
74 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
75 inline void SetIdentifier(const Aws::String& value) { m_identifierHasBeenSet = true; m_identifier = value; }
76 inline void SetIdentifier(Aws::String&& value) { m_identifierHasBeenSet = true; m_identifier = std::move(value); }
77 inline void SetIdentifier(const char* value) { m_identifierHasBeenSet = true; m_identifier.assign(value); }
78 inline PhysicalResourceId& WithIdentifier(const Aws::String& value) { SetIdentifier(value); return *this;}
79 inline PhysicalResourceId& WithIdentifier(Aws::String&& value) { SetIdentifier(std::move(value)); return *this;}
80 inline PhysicalResourceId& WithIdentifier(const char* value) { SetIdentifier(value); return *this;}
82
84
115 inline const PhysicalIdentifierType& GetType() const{ return m_type; }
116 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
117 inline void SetType(const PhysicalIdentifierType& value) { m_typeHasBeenSet = true; m_type = value; }
118 inline void SetType(PhysicalIdentifierType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
119 inline PhysicalResourceId& WithType(const PhysicalIdentifierType& value) { SetType(value); return *this;}
120 inline PhysicalResourceId& WithType(PhysicalIdentifierType&& value) { SetType(std::move(value)); return *this;}
122 private:
123
124 Aws::String m_awsAccountId;
125 bool m_awsAccountIdHasBeenSet = false;
126
127 Aws::String m_awsRegion;
128 bool m_awsRegionHasBeenSet = false;
129
130 Aws::String m_identifier;
131 bool m_identifierHasBeenSet = false;
132
134 bool m_typeHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace ResilienceHub
139} // namespace Aws
PhysicalResourceId & WithAwsRegion(const char *value)
PhysicalResourceId & WithIdentifier(const char *value)
void SetType(const PhysicalIdentifierType &value)
PhysicalResourceId & WithIdentifier(const Aws::String &value)
PhysicalResourceId & WithIdentifier(Aws::String &&value)
void SetAwsAccountId(const Aws::String &value)
AWS_RESILIENCEHUB_API PhysicalResourceId(Aws::Utils::Json::JsonView jsonValue)
void SetType(PhysicalIdentifierType &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
const PhysicalIdentifierType & GetType() const
PhysicalResourceId & WithAwsAccountId(const Aws::String &value)
AWS_RESILIENCEHUB_API PhysicalResourceId & operator=(Aws::Utils::Json::JsonView jsonValue)
PhysicalResourceId & WithAwsRegion(Aws::String &&value)
PhysicalResourceId & WithAwsRegion(const Aws::String &value)
PhysicalResourceId & WithType(PhysicalIdentifierType &&value)
PhysicalResourceId & WithType(const PhysicalIdentifierType &value)
PhysicalResourceId & WithAwsAccountId(Aws::String &&value)
PhysicalResourceId & WithAwsAccountId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue