AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename GlobalNetworkIdT = Aws::String>
53 void SetGlobalNetworkId(GlobalNetworkIdT&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::forward<GlobalNetworkIdT>(value); }
54 template<typename GlobalNetworkIdT = Aws::String>
55 GlobalNetwork& WithGlobalNetworkId(GlobalNetworkIdT&& value) { SetGlobalNetworkId(std::forward<GlobalNetworkIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetGlobalNetworkArn() const { return m_globalNetworkArn; }
63 inline bool GlobalNetworkArnHasBeenSet() const { return m_globalNetworkArnHasBeenSet; }
64 template<typename GlobalNetworkArnT = Aws::String>
65 void SetGlobalNetworkArn(GlobalNetworkArnT&& value) { m_globalNetworkArnHasBeenSet = true; m_globalNetworkArn = std::forward<GlobalNetworkArnT>(value); }
66 template<typename GlobalNetworkArnT = Aws::String>
67 GlobalNetwork& WithGlobalNetworkArn(GlobalNetworkArnT&& value) { SetGlobalNetworkArn(std::forward<GlobalNetworkArnT>(value)); return *this;}
69
71
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template<typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
78 template<typename DescriptionT = Aws::String>
79 GlobalNetwork& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
81
83
86 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
87 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
88 template<typename CreatedAtT = Aws::Utils::DateTime>
89 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
90 template<typename CreatedAtT = Aws::Utils::DateTime>
91 GlobalNetwork& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
93
95
98 inline GlobalNetworkState GetState() const { return m_state; }
99 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
100 inline void SetState(GlobalNetworkState value) { m_stateHasBeenSet = true; m_state = value; }
101 inline GlobalNetwork& WithState(GlobalNetworkState value) { SetState(value); return *this;}
103
105
108 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
109 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
110 template<typename TagsT = Aws::Vector<Tag>>
111 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
112 template<typename TagsT = Aws::Vector<Tag>>
113 GlobalNetwork& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
114 template<typename TagsT = Tag>
115 GlobalNetwork& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
117 private:
118
119 Aws::String m_globalNetworkId;
120 bool m_globalNetworkIdHasBeenSet = false;
121
122 Aws::String m_globalNetworkArn;
123 bool m_globalNetworkArnHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
128 Aws::Utils::DateTime m_createdAt{};
129 bool m_createdAtHasBeenSet = false;
130
132 bool m_stateHasBeenSet = false;
133
134 Aws::Vector<Tag> m_tags;
135 bool m_tagsHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace NetworkManager
140} // namespace Aws
void SetDescription(DescriptionT &&value)
GlobalNetwork & WithCreatedAt(CreatedAtT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetGlobalNetworkId() const
GlobalNetwork & WithGlobalNetworkId(GlobalNetworkIdT &&value)
void SetState(GlobalNetworkState value)
GlobalNetwork & WithDescription(DescriptionT &&value)
const Aws::String & GetGlobalNetworkArn() const
AWS_NETWORKMANAGER_API GlobalNetwork()=default
GlobalNetworkState GetState() const
GlobalNetwork & WithGlobalNetworkArn(GlobalNetworkArnT &&value)
GlobalNetwork & WithState(GlobalNetworkState value)
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Tag > & GetTags() const
GlobalNetwork & WithTags(TagsT &&value)
AWS_NETWORKMANAGER_API GlobalNetwork & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NETWORKMANAGER_API GlobalNetwork(Aws::Utils::Json::JsonView jsonValue)
GlobalNetwork & AddTags(TagsT &&value)
void SetGlobalNetworkArn(GlobalNetworkArnT &&value)
void SetGlobalNetworkId(GlobalNetworkIdT &&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