AWS SDK for C++

AWS SDK for C++ Version 1.11.771

Loading...
Searching...
No Matches
HandshakeResource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/organizations/Organizations_EXPORTS.h>
10#include <aws/organizations/model/HandshakeResourceType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Organizations {
22namespace Model {
23
30 public:
31 AWS_ORGANIZATIONS_API HandshakeResource() = default;
32 AWS_ORGANIZATIONS_API HandshakeResource(Aws::Utils::Json::JsonView jsonValue);
33 AWS_ORGANIZATIONS_API HandshakeResource& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetValue() const { return m_value; }
42 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
43 template <typename ValueT = Aws::String>
44 void SetValue(ValueT&& value) {
45 m_valueHasBeenSet = true;
46 m_value = std::forward<ValueT>(value);
47 }
48 template <typename ValueT = Aws::String>
49 HandshakeResource& WithValue(ValueT&& value) {
50 SetValue(std::forward<ValueT>(value));
51 return *this;
52 }
54
56
66 inline HandshakeResourceType GetType() const { return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(HandshakeResourceType value) {
69 m_typeHasBeenSet = true;
70 m_type = value;
71 }
73 SetType(value);
74 return *this;
75 }
77
79
84 inline const Aws::Vector<HandshakeResource>& GetResources() const { return m_resources; }
85 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
86 template <typename ResourcesT = Aws::Vector<HandshakeResource>>
87 void SetResources(ResourcesT&& value) {
88 m_resourcesHasBeenSet = true;
89 m_resources = std::forward<ResourcesT>(value);
90 }
91 template <typename ResourcesT = Aws::Vector<HandshakeResource>>
92 HandshakeResource& WithResources(ResourcesT&& value) {
93 SetResources(std::forward<ResourcesT>(value));
94 return *this;
95 }
96 template <typename ResourcesT = HandshakeResource>
97 HandshakeResource& AddResources(ResourcesT&& value) {
98 m_resourcesHasBeenSet = true;
99 m_resources.emplace_back(std::forward<ResourcesT>(value));
100 return *this;
101 }
103 private:
104 Aws::String m_value;
105
107
109 bool m_valueHasBeenSet = false;
110 bool m_typeHasBeenSet = false;
111 bool m_resourcesHasBeenSet = false;
112};
113
114} // namespace Model
115} // namespace Organizations
116} // namespace Aws
HandshakeResource & AddResources(ResourcesT &&value)
HandshakeResource & WithValue(ValueT &&value)
AWS_ORGANIZATIONS_API HandshakeResource()=default
HandshakeResource & WithType(HandshakeResourceType value)
const Aws::Vector< HandshakeResource > & GetResources() const
AWS_ORGANIZATIONS_API HandshakeResource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ORGANIZATIONS_API HandshakeResource(Aws::Utils::Json::JsonView jsonValue)
HandshakeResource & WithResources(ResourcesT &&value)
void SetType(HandshakeResourceType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue