AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GlobalNetwork.h
1
6#pragma once
7#include <aws/networkmanager/NetworkManager_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/networkmanager/model/GlobalNetworkState.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/networkmanager/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace NetworkManager
26{
27namespace Model
28{
29
38 {
39 public:
40 AWS_NETWORKMANAGER_API GlobalNetwork();
41 AWS_NETWORKMANAGER_API GlobalNetwork(Aws::Utils::Json::JsonView jsonValue);
42 AWS_NETWORKMANAGER_API GlobalNetwork& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; }
51 inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; }
52 inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; }
53 inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); }
54 inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); }
55 inline GlobalNetwork& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;}
56 inline GlobalNetwork& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;}
57 inline GlobalNetwork& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;}
59
61
64 inline const Aws::String& GetGlobalNetworkArn() const{ return m_globalNetworkArn; }
65 inline bool GlobalNetworkArnHasBeenSet() const { return m_globalNetworkArnHasBeenSet; }
66 inline void SetGlobalNetworkArn(const Aws::String& value) { m_globalNetworkArnHasBeenSet = true; m_globalNetworkArn = value; }
67 inline void SetGlobalNetworkArn(Aws::String&& value) { m_globalNetworkArnHasBeenSet = true; m_globalNetworkArn = std::move(value); }
68 inline void SetGlobalNetworkArn(const char* value) { m_globalNetworkArnHasBeenSet = true; m_globalNetworkArn.assign(value); }
69 inline GlobalNetwork& WithGlobalNetworkArn(const Aws::String& value) { SetGlobalNetworkArn(value); return *this;}
70 inline GlobalNetwork& WithGlobalNetworkArn(Aws::String&& value) { SetGlobalNetworkArn(std::move(value)); return *this;}
71 inline GlobalNetwork& WithGlobalNetworkArn(const char* value) { SetGlobalNetworkArn(value); return *this;}
73
75
78 inline const Aws::String& GetDescription() const{ return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
81 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
82 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
83 inline GlobalNetwork& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
84 inline GlobalNetwork& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
85 inline GlobalNetwork& WithDescription(const char* value) { SetDescription(value); return *this;}
87
89
92 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
93 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
94 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
95 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
96 inline GlobalNetwork& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
97 inline GlobalNetwork& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
99
101
104 inline const GlobalNetworkState& GetState() const{ return m_state; }
105 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
106 inline void SetState(const GlobalNetworkState& value) { m_stateHasBeenSet = true; m_state = value; }
107 inline void SetState(GlobalNetworkState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); }
108 inline GlobalNetwork& WithState(const GlobalNetworkState& value) { SetState(value); return *this;}
109 inline GlobalNetwork& WithState(GlobalNetworkState&& value) { SetState(std::move(value)); return *this;}
111
113
116 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
117 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
118 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
119 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
120 inline GlobalNetwork& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
121 inline GlobalNetwork& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
122 inline GlobalNetwork& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
123 inline GlobalNetwork& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
125 private:
126
127 Aws::String m_globalNetworkId;
128 bool m_globalNetworkIdHasBeenSet = false;
129
130 Aws::String m_globalNetworkArn;
131 bool m_globalNetworkArnHasBeenSet = false;
132
133 Aws::String m_description;
134 bool m_descriptionHasBeenSet = false;
135
136 Aws::Utils::DateTime m_createdAt;
137 bool m_createdAtHasBeenSet = false;
138
139 GlobalNetworkState m_state;
140 bool m_stateHasBeenSet = false;
141
142 Aws::Vector<Tag> m_tags;
143 bool m_tagsHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace NetworkManager
148} // namespace Aws
void SetGlobalNetworkId(Aws::String &&value)
GlobalNetwork & WithGlobalNetworkArn(const char *value)
void SetGlobalNetworkId(const Aws::String &value)
GlobalNetwork & WithGlobalNetworkId(const Aws::String &value)
GlobalNetwork & WithState(const GlobalNetworkState &value)
GlobalNetwork & AddTags(const Tag &value)
const GlobalNetworkState & GetState() const
GlobalNetwork & WithTags(Aws::Vector< Tag > &&value)
const Aws::String & GetDescription() const
const Aws::String & GetGlobalNetworkId() const
GlobalNetwork & WithState(GlobalNetworkState &&value)
void SetDescription(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
GlobalNetwork & WithDescription(const Aws::String &value)
void SetState(GlobalNetworkState &&value)
const Aws::String & GetGlobalNetworkArn() const
void SetCreatedAt(const Aws::Utils::DateTime &value)
GlobalNetwork & WithDescription(Aws::String &&value)
void SetGlobalNetworkArn(const char *value)
GlobalNetwork & WithGlobalNetworkId(const char *value)
void SetTags(const Aws::Vector< Tag > &value)
void SetState(const GlobalNetworkState &value)
GlobalNetwork & WithTags(const Aws::Vector< Tag > &value)
GlobalNetwork & WithGlobalNetworkArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Tag > & GetTags() const
AWS_NETWORKMANAGER_API GlobalNetwork & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetGlobalNetworkArn(const Aws::String &value)
GlobalNetwork & WithGlobalNetworkId(Aws::String &&value)
AWS_NETWORKMANAGER_API GlobalNetwork(Aws::Utils::Json::JsonView jsonValue)
GlobalNetwork & AddTags(Tag &&value)
void SetGlobalNetworkId(const char *value)
AWS_NETWORKMANAGER_API GlobalNetwork()
void SetDescription(Aws::String &&value)
GlobalNetwork & WithGlobalNetworkArn(Aws::String &&value)
GlobalNetwork & WithDescription(const char *value)
GlobalNetwork & WithCreatedAt(const Aws::Utils::DateTime &value)
void SetGlobalNetworkArn(Aws::String &&value)
GlobalNetwork & WithCreatedAt(Aws::Utils::DateTime &&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