AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
VpcPeeringAuthorization.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/gamelift/GameLift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GameLift {
21namespace Model {
22
35 public:
36 AWS_GAMELIFT_API VpcPeeringAuthorization() = default;
39 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
47 inline const Aws::String& GetGameLiftAwsAccountId() const { return m_gameLiftAwsAccountId; }
48 inline bool GameLiftAwsAccountIdHasBeenSet() const { return m_gameLiftAwsAccountIdHasBeenSet; }
49 template <typename GameLiftAwsAccountIdT = Aws::String>
50 void SetGameLiftAwsAccountId(GameLiftAwsAccountIdT&& value) {
51 m_gameLiftAwsAccountIdHasBeenSet = true;
52 m_gameLiftAwsAccountId = std::forward<GameLiftAwsAccountIdT>(value);
53 }
54 template <typename GameLiftAwsAccountIdT = Aws::String>
55 VpcPeeringAuthorization& WithGameLiftAwsAccountId(GameLiftAwsAccountIdT&& value) {
56 SetGameLiftAwsAccountId(std::forward<GameLiftAwsAccountIdT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetPeerVpcAwsAccountId() const { return m_peerVpcAwsAccountId; }
66 inline bool PeerVpcAwsAccountIdHasBeenSet() const { return m_peerVpcAwsAccountIdHasBeenSet; }
67 template <typename PeerVpcAwsAccountIdT = Aws::String>
68 void SetPeerVpcAwsAccountId(PeerVpcAwsAccountIdT&& value) {
69 m_peerVpcAwsAccountIdHasBeenSet = true;
70 m_peerVpcAwsAccountId = std::forward<PeerVpcAwsAccountIdT>(value);
71 }
72 template <typename PeerVpcAwsAccountIdT = Aws::String>
73 VpcPeeringAuthorization& WithPeerVpcAwsAccountId(PeerVpcAwsAccountIdT&& value) {
74 SetPeerVpcAwsAccountId(std::forward<PeerVpcAwsAccountIdT>(value));
75 return *this;
76 }
78
80
89 inline const Aws::String& GetPeerVpcId() const { return m_peerVpcId; }
90 inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; }
91 template <typename PeerVpcIdT = Aws::String>
92 void SetPeerVpcId(PeerVpcIdT&& value) {
93 m_peerVpcIdHasBeenSet = true;
94 m_peerVpcId = std::forward<PeerVpcIdT>(value);
95 }
96 template <typename PeerVpcIdT = Aws::String>
98 SetPeerVpcId(std::forward<PeerVpcIdT>(value));
99 return *this;
100 }
102
104
109 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
110 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
111 template <typename CreationTimeT = Aws::Utils::DateTime>
112 void SetCreationTime(CreationTimeT&& value) {
113 m_creationTimeHasBeenSet = true;
114 m_creationTime = std::forward<CreationTimeT>(value);
115 }
116 template <typename CreationTimeT = Aws::Utils::DateTime>
118 SetCreationTime(std::forward<CreationTimeT>(value));
119 return *this;
120 }
122
124
129 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
130 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
131 template <typename ExpirationTimeT = Aws::Utils::DateTime>
132 void SetExpirationTime(ExpirationTimeT&& value) {
133 m_expirationTimeHasBeenSet = true;
134 m_expirationTime = std::forward<ExpirationTimeT>(value);
135 }
136 template <typename ExpirationTimeT = Aws::Utils::DateTime>
137 VpcPeeringAuthorization& WithExpirationTime(ExpirationTimeT&& value) {
138 SetExpirationTime(std::forward<ExpirationTimeT>(value));
139 return *this;
140 }
142 private:
143 Aws::String m_gameLiftAwsAccountId;
144
145 Aws::String m_peerVpcAwsAccountId;
146
147 Aws::String m_peerVpcId;
148
149 Aws::Utils::DateTime m_creationTime{};
150
151 Aws::Utils::DateTime m_expirationTime{};
152 bool m_gameLiftAwsAccountIdHasBeenSet = false;
153 bool m_peerVpcAwsAccountIdHasBeenSet = false;
154 bool m_peerVpcIdHasBeenSet = false;
155 bool m_creationTimeHasBeenSet = false;
156 bool m_expirationTimeHasBeenSet = false;
157};
158
159} // namespace Model
160} // namespace GameLift
161} // namespace Aws
void SetPeerVpcAwsAccountId(PeerVpcAwsAccountIdT &&value)
const Aws::Utils::DateTime & GetExpirationTime() const
VpcPeeringAuthorization & WithPeerVpcAwsAccountId(PeerVpcAwsAccountIdT &&value)
AWS_GAMELIFT_API VpcPeeringAuthorization()=default
const Aws::Utils::DateTime & GetCreationTime() const
void SetGameLiftAwsAccountId(GameLiftAwsAccountIdT &&value)
VpcPeeringAuthorization & WithGameLiftAwsAccountId(GameLiftAwsAccountIdT &&value)
VpcPeeringAuthorization & WithExpirationTime(ExpirationTimeT &&value)
VpcPeeringAuthorization & WithCreationTime(CreationTimeT &&value)
AWS_GAMELIFT_API VpcPeeringAuthorization(Aws::Utils::Json::JsonView jsonValue)
VpcPeeringAuthorization & WithPeerVpcId(PeerVpcIdT &&value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API VpcPeeringAuthorization & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue