AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
HandshakeResource.h
1
6#pragma once
7#include <aws/organizations/Organizations_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/organizations/model/HandshakeResourceType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Organizations
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_ORGANIZATIONS_API HandshakeResource() = default;
38 AWS_ORGANIZATIONS_API HandshakeResource(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ORGANIZATIONS_API HandshakeResource& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
49 inline const Aws::String& GetValue() const { return m_value; }
50 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
51 template<typename ValueT = Aws::String>
52 void SetValue(ValueT&& value) { m_valueHasBeenSet = true; m_value = std::forward<ValueT>(value); }
53 template<typename ValueT = Aws::String>
54 HandshakeResource& WithValue(ValueT&& value) { SetValue(std::forward<ValueT>(value)); return *this;}
56
58
72 inline HandshakeResourceType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(HandshakeResourceType value) { m_typeHasBeenSet = true; m_type = value; }
75 inline HandshakeResource& WithType(HandshakeResourceType value) { SetType(value); return *this;}
77
79
83 inline const Aws::Vector<HandshakeResource>& GetResources() const { return m_resources; }
84 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
85 template<typename ResourcesT = Aws::Vector<HandshakeResource>>
86 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
87 template<typename ResourcesT = Aws::Vector<HandshakeResource>>
88 HandshakeResource& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
89 template<typename ResourcesT = HandshakeResource>
90 HandshakeResource& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
92 private:
93
94 Aws::String m_value;
95 bool m_valueHasBeenSet = false;
96
98 bool m_typeHasBeenSet = false;
99
101 bool m_resourcesHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace Organizations
106} // 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