AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Network.h
1
6#pragma once
7#include <aws/privatenetworks/PrivateNetworks_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/privatenetworks/model/NetworkStatus.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 PrivateNetworks
24{
25namespace Model
26{
27
33 class Network
34 {
35 public:
36 AWS_PRIVATENETWORKS_API Network();
37 AWS_PRIVATENETWORKS_API Network(Aws::Utils::Json::JsonView jsonValue);
38 AWS_PRIVATENETWORKS_API Network& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
47 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
48 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
49 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
50 inline Network& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
51 inline Network& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
53
55
58 inline const Aws::String& GetDescription() const{ return m_description; }
59 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
60 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
61 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
62 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
63 inline Network& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
64 inline Network& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
65 inline Network& WithDescription(const char* value) { SetDescription(value); return *this;}
67
69
72 inline const Aws::String& GetNetworkArn() const{ return m_networkArn; }
73 inline bool NetworkArnHasBeenSet() const { return m_networkArnHasBeenSet; }
74 inline void SetNetworkArn(const Aws::String& value) { m_networkArnHasBeenSet = true; m_networkArn = value; }
75 inline void SetNetworkArn(Aws::String&& value) { m_networkArnHasBeenSet = true; m_networkArn = std::move(value); }
76 inline void SetNetworkArn(const char* value) { m_networkArnHasBeenSet = true; m_networkArn.assign(value); }
77 inline Network& WithNetworkArn(const Aws::String& value) { SetNetworkArn(value); return *this;}
78 inline Network& WithNetworkArn(Aws::String&& value) { SetNetworkArn(std::move(value)); return *this;}
79 inline Network& WithNetworkArn(const char* value) { SetNetworkArn(value); return *this;}
81
83
86 inline const Aws::String& GetNetworkName() const{ return m_networkName; }
87 inline bool NetworkNameHasBeenSet() const { return m_networkNameHasBeenSet; }
88 inline void SetNetworkName(const Aws::String& value) { m_networkNameHasBeenSet = true; m_networkName = value; }
89 inline void SetNetworkName(Aws::String&& value) { m_networkNameHasBeenSet = true; m_networkName = std::move(value); }
90 inline void SetNetworkName(const char* value) { m_networkNameHasBeenSet = true; m_networkName.assign(value); }
91 inline Network& WithNetworkName(const Aws::String& value) { SetNetworkName(value); return *this;}
92 inline Network& WithNetworkName(Aws::String&& value) { SetNetworkName(std::move(value)); return *this;}
93 inline Network& WithNetworkName(const char* value) { SetNetworkName(value); return *this;}
95
97
100 inline const NetworkStatus& GetStatus() const{ return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 inline void SetStatus(const NetworkStatus& value) { m_statusHasBeenSet = true; m_status = value; }
103 inline void SetStatus(NetworkStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
104 inline Network& WithStatus(const NetworkStatus& value) { SetStatus(value); return *this;}
105 inline Network& WithStatus(NetworkStatus&& value) { SetStatus(std::move(value)); return *this;}
107
109
112 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
113 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
114 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
115 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
116 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
117 inline Network& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
118 inline Network& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
119 inline Network& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
121 private:
122
123 Aws::Utils::DateTime m_createdAt;
124 bool m_createdAtHasBeenSet = false;
125
126 Aws::String m_description;
127 bool m_descriptionHasBeenSet = false;
128
129 Aws::String m_networkArn;
130 bool m_networkArnHasBeenSet = false;
131
132 Aws::String m_networkName;
133 bool m_networkNameHasBeenSet = false;
134
135 NetworkStatus m_status;
136 bool m_statusHasBeenSet = false;
137
138 Aws::String m_statusReason;
139 bool m_statusReasonHasBeenSet = false;
140 };
141
142} // namespace Model
143} // namespace PrivateNetworks
144} // namespace Aws
void SetStatus(NetworkStatus &&value)
Definition Network.h:103
AWS_PRIVATENETWORKS_API Network & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatusReason(Aws::String &&value)
Definition Network.h:115
void SetNetworkName(const Aws::String &value)
Definition Network.h:88
const NetworkStatus & GetStatus() const
Definition Network.h:100
void SetStatusReason(const char *value)
Definition Network.h:116
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition Network.h:48
Network & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition Network.h:50
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition Network.h:49
Network & WithNetworkArn(Aws::String &&value)
Definition Network.h:78
void SetNetworkArn(Aws::String &&value)
Definition Network.h:75
void SetDescription(const char *value)
Definition Network.h:62
AWS_PRIVATENETWORKS_API Network()
Network & WithDescription(const char *value)
Definition Network.h:65
Network & WithNetworkArn(const Aws::String &value)
Definition Network.h:77
Network & WithStatus(const NetworkStatus &value)
Definition Network.h:104
Network & WithStatusReason(Aws::String &&value)
Definition Network.h:118
const Aws::String & GetNetworkArn() const
Definition Network.h:72
void SetNetworkArn(const Aws::String &value)
Definition Network.h:74
Network & WithStatusReason(const Aws::String &value)
Definition Network.h:117
Network & WithStatus(NetworkStatus &&value)
Definition Network.h:105
void SetNetworkName(Aws::String &&value)
Definition Network.h:89
Network & WithNetworkArn(const char *value)
Definition Network.h:79
void SetDescription(Aws::String &&value)
Definition Network.h:61
void SetNetworkName(const char *value)
Definition Network.h:90
const Aws::String & GetStatusReason() const
Definition Network.h:112
AWS_PRIVATENETWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_PRIVATENETWORKS_API Network(Aws::Utils::Json::JsonView jsonValue)
void SetNetworkArn(const char *value)
Definition Network.h:76
Network & WithNetworkName(const char *value)
Definition Network.h:93
void SetDescription(const Aws::String &value)
Definition Network.h:60
Network & WithDescription(const Aws::String &value)
Definition Network.h:63
const Aws::Utils::DateTime & GetCreatedAt() const
Definition Network.h:46
void SetStatus(const NetworkStatus &value)
Definition Network.h:102
Network & WithStatusReason(const char *value)
Definition Network.h:119
const Aws::String & GetDescription() const
Definition Network.h:58
Network & WithNetworkName(const Aws::String &value)
Definition Network.h:91
Network & WithNetworkName(Aws::String &&value)
Definition Network.h:92
Network & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition Network.h:51
void SetStatusReason(const Aws::String &value)
Definition Network.h:114
const Aws::String & GetNetworkName() const
Definition Network.h:86
Network & WithDescription(Aws::String &&value)
Definition Network.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue