AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetValue(const Aws::String& value) { m_valueHasBeenSet = true; m_value = value; }
52 inline void SetValue(Aws::String&& value) { m_valueHasBeenSet = true; m_value = std::move(value); }
53 inline void SetValue(const char* value) { m_valueHasBeenSet = true; m_value.assign(value); }
54 inline HandshakeResource& WithValue(const Aws::String& value) { SetValue(value); return *this;}
55 inline HandshakeResource& WithValue(Aws::String&& value) { SetValue(std::move(value)); return *this;}
56 inline HandshakeResource& WithValue(const char* value) { SetValue(value); return *this;}
58
60
74 inline const HandshakeResourceType& GetType() const{ return m_type; }
75 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
76 inline void SetType(const HandshakeResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
77 inline void SetType(HandshakeResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
78 inline HandshakeResource& WithType(const HandshakeResourceType& value) { SetType(value); return *this;}
79 inline HandshakeResource& WithType(HandshakeResourceType&& value) { SetType(std::move(value)); return *this;}
81
83
87 inline const Aws::Vector<HandshakeResource>& GetResources() const{ return m_resources; }
88 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
89 inline void SetResources(const Aws::Vector<HandshakeResource>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
90 inline void SetResources(Aws::Vector<HandshakeResource>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
91 inline HandshakeResource& WithResources(const Aws::Vector<HandshakeResource>& value) { SetResources(value); return *this;}
92 inline HandshakeResource& WithResources(Aws::Vector<HandshakeResource>&& value) { SetResources(std::move(value)); return *this;}
93 inline HandshakeResource& AddResources(const HandshakeResource& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
94 inline HandshakeResource& AddResources(HandshakeResource&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
96 private:
97
98 Aws::String m_value;
99 bool m_valueHasBeenSet = false;
100
102 bool m_typeHasBeenSet = false;
103
105 bool m_resourcesHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Organizations
110} // namespace Aws
const Aws::Vector< HandshakeResource > & GetResources() const
HandshakeResource & WithResources(const Aws::Vector< HandshakeResource > &value)
HandshakeResource & AddResources(const HandshakeResource &value)
HandshakeResource & AddResources(HandshakeResource &&value)
void SetType(HandshakeResourceType &&value)
AWS_ORGANIZATIONS_API HandshakeResource & operator=(Aws::Utils::Json::JsonView jsonValue)
HandshakeResource & WithValue(const char *value)
void SetResources(Aws::Vector< HandshakeResource > &&value)
AWS_ORGANIZATIONS_API Aws::Utils::Json::JsonValue Jsonize() const
HandshakeResource & WithValue(const Aws::String &value)
AWS_ORGANIZATIONS_API HandshakeResource(Aws::Utils::Json::JsonView jsonValue)
HandshakeResource & WithValue(Aws::String &&value)
const HandshakeResourceType & GetType() const
HandshakeResource & WithResources(Aws::Vector< HandshakeResource > &&value)
HandshakeResource & WithType(HandshakeResourceType &&value)
HandshakeResource & WithType(const HandshakeResourceType &value)
void SetType(const HandshakeResourceType &value)
void SetResources(const Aws::Vector< HandshakeResource > &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