AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AwsAccountIdT = Aws::String>
48 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
49 template<typename AwsAccountIdT = Aws::String>
50 PhysicalResourceId& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
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) { m_awsRegionHasBeenSet = true; m_awsRegion = std::forward<AwsRegionT>(value); }
61 template<typename AwsRegionT = Aws::String>
62 PhysicalResourceId& WithAwsRegion(AwsRegionT&& value) { SetAwsRegion(std::forward<AwsRegionT>(value)); return *this;}
64
66
69 inline const Aws::String& GetIdentifier() const { return m_identifier; }
70 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
71 template<typename IdentifierT = Aws::String>
72 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
73 template<typename IdentifierT = Aws::String>
74 PhysicalResourceId& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
76
78
109 inline PhysicalIdentifierType GetType() const { return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 inline void SetType(PhysicalIdentifierType value) { m_typeHasBeenSet = true; m_type = value; }
112 inline PhysicalResourceId& WithType(PhysicalIdentifierType value) { SetType(value); return *this;}
114 private:
115
116 Aws::String m_awsAccountId;
117 bool m_awsAccountIdHasBeenSet = false;
118
119 Aws::String m_awsRegion;
120 bool m_awsRegionHasBeenSet = false;
121
122 Aws::String m_identifier;
123 bool m_identifierHasBeenSet = false;
124
126 bool m_typeHasBeenSet = false;
127 };
128
129} // namespace Model
130} // namespace ResilienceHub
131} // 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