AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
VpcPeeringAuthorization.h
1
6#pragma once
7#include <aws/gamelift/GameLift_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GameLift
23{
24namespace Model
25{
26
39 {
40 public:
41 AWS_GAMELIFT_API VpcPeeringAuthorization() = default;
44 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
53 inline const Aws::String& GetGameLiftAwsAccountId() const { return m_gameLiftAwsAccountId; }
54 inline bool GameLiftAwsAccountIdHasBeenSet() const { return m_gameLiftAwsAccountIdHasBeenSet; }
55 template<typename GameLiftAwsAccountIdT = Aws::String>
56 void SetGameLiftAwsAccountId(GameLiftAwsAccountIdT&& value) { m_gameLiftAwsAccountIdHasBeenSet = true; m_gameLiftAwsAccountId = std::forward<GameLiftAwsAccountIdT>(value); }
57 template<typename GameLiftAwsAccountIdT = Aws::String>
58 VpcPeeringAuthorization& WithGameLiftAwsAccountId(GameLiftAwsAccountIdT&& value) { SetGameLiftAwsAccountId(std::forward<GameLiftAwsAccountIdT>(value)); return *this;}
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) { m_peerVpcAwsAccountIdHasBeenSet = true; m_peerVpcAwsAccountId = std::forward<PeerVpcAwsAccountIdT>(value); }
69 template<typename PeerVpcAwsAccountIdT = Aws::String>
70 VpcPeeringAuthorization& WithPeerVpcAwsAccountId(PeerVpcAwsAccountIdT&& value) { SetPeerVpcAwsAccountId(std::forward<PeerVpcAwsAccountIdT>(value)); return *this;}
72
74
83 inline const Aws::String& GetPeerVpcId() const { return m_peerVpcId; }
84 inline bool PeerVpcIdHasBeenSet() const { return m_peerVpcIdHasBeenSet; }
85 template<typename PeerVpcIdT = Aws::String>
86 void SetPeerVpcId(PeerVpcIdT&& value) { m_peerVpcIdHasBeenSet = true; m_peerVpcId = std::forward<PeerVpcIdT>(value); }
87 template<typename PeerVpcIdT = Aws::String>
88 VpcPeeringAuthorization& WithPeerVpcId(PeerVpcIdT&& value) { SetPeerVpcId(std::forward<PeerVpcIdT>(value)); return *this;}
90
92
97 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
98 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
99 template<typename CreationTimeT = Aws::Utils::DateTime>
100 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
101 template<typename CreationTimeT = Aws::Utils::DateTime>
102 VpcPeeringAuthorization& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
104
106
111 inline const Aws::Utils::DateTime& GetExpirationTime() const { return m_expirationTime; }
112 inline bool ExpirationTimeHasBeenSet() const { return m_expirationTimeHasBeenSet; }
113 template<typename ExpirationTimeT = Aws::Utils::DateTime>
114 void SetExpirationTime(ExpirationTimeT&& value) { m_expirationTimeHasBeenSet = true; m_expirationTime = std::forward<ExpirationTimeT>(value); }
115 template<typename ExpirationTimeT = Aws::Utils::DateTime>
116 VpcPeeringAuthorization& WithExpirationTime(ExpirationTimeT&& value) { SetExpirationTime(std::forward<ExpirationTimeT>(value)); return *this;}
118 private:
119
120 Aws::String m_gameLiftAwsAccountId;
121 bool m_gameLiftAwsAccountIdHasBeenSet = false;
122
123 Aws::String m_peerVpcAwsAccountId;
124 bool m_peerVpcAwsAccountIdHasBeenSet = false;
125
126 Aws::String m_peerVpcId;
127 bool m_peerVpcIdHasBeenSet = false;
128
129 Aws::Utils::DateTime m_creationTime{};
130 bool m_creationTimeHasBeenSet = false;
131
132 Aws::Utils::DateTime m_expirationTime{};
133 bool m_expirationTimeHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace GameLift
138} // 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