AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
VpcConnectionInfo.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/UserIdentity.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Kafka {
22namespace Model {
23
33 public:
34 AWS_KAFKA_API VpcConnectionInfo() = default;
37 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
46 inline const Aws::String& GetVpcConnectionArn() const { return m_vpcConnectionArn; }
47 inline bool VpcConnectionArnHasBeenSet() const { return m_vpcConnectionArnHasBeenSet; }
48 template <typename VpcConnectionArnT = Aws::String>
49 void SetVpcConnectionArn(VpcConnectionArnT&& value) {
50 m_vpcConnectionArnHasBeenSet = true;
51 m_vpcConnectionArn = std::forward<VpcConnectionArnT>(value);
52 }
53 template <typename VpcConnectionArnT = Aws::String>
54 VpcConnectionInfo& WithVpcConnectionArn(VpcConnectionArnT&& value) {
55 SetVpcConnectionArn(std::forward<VpcConnectionArnT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::String& GetOwner() const { return m_owner; }
67 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
68 template <typename OwnerT = Aws::String>
69 void SetOwner(OwnerT&& value) {
70 m_ownerHasBeenSet = true;
71 m_owner = std::forward<OwnerT>(value);
72 }
73 template <typename OwnerT = Aws::String>
74 VpcConnectionInfo& WithOwner(OwnerT&& value) {
75 SetOwner(std::forward<OwnerT>(value));
76 return *this;
77 }
79
81
87 inline const UserIdentity& GetUserIdentity() const { return m_userIdentity; }
88 inline bool UserIdentityHasBeenSet() const { return m_userIdentityHasBeenSet; }
89 template <typename UserIdentityT = UserIdentity>
90 void SetUserIdentity(UserIdentityT&& value) {
91 m_userIdentityHasBeenSet = true;
92 m_userIdentity = std::forward<UserIdentityT>(value);
93 }
94 template <typename UserIdentityT = UserIdentity>
95 VpcConnectionInfo& WithUserIdentity(UserIdentityT&& value) {
96 SetUserIdentity(std::forward<UserIdentityT>(value));
97 return *this;
98 }
100
102
108 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
109 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
110 template <typename CreationTimeT = Aws::Utils::DateTime>
111 void SetCreationTime(CreationTimeT&& value) {
112 m_creationTimeHasBeenSet = true;
113 m_creationTime = std::forward<CreationTimeT>(value);
114 }
115 template <typename CreationTimeT = Aws::Utils::DateTime>
116 VpcConnectionInfo& WithCreationTime(CreationTimeT&& value) {
117 SetCreationTime(std::forward<CreationTimeT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_vpcConnectionArn;
123
124 Aws::String m_owner;
125
126 UserIdentity m_userIdentity;
127
128 Aws::Utils::DateTime m_creationTime{};
129 bool m_vpcConnectionArnHasBeenSet = false;
130 bool m_ownerHasBeenSet = false;
131 bool m_userIdentityHasBeenSet = false;
132 bool m_creationTimeHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace Kafka
137} // namespace Aws
const Aws::String & GetVpcConnectionArn() const
const Aws::Utils::DateTime & GetCreationTime() const
void SetUserIdentity(UserIdentityT &&value)
VpcConnectionInfo & WithVpcConnectionArn(VpcConnectionArnT &&value)
const Aws::String & GetOwner() const
const UserIdentity & GetUserIdentity() const
void SetCreationTime(CreationTimeT &&value)
AWS_KAFKA_API VpcConnectionInfo(Aws::Utils::Json::JsonView jsonValue)
VpcConnectionInfo & WithOwner(OwnerT &&value)
void SetVpcConnectionArn(VpcConnectionArnT &&value)
AWS_KAFKA_API VpcConnectionInfo & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
VpcConnectionInfo & WithCreationTime(CreationTimeT &&value)
AWS_KAFKA_API VpcConnectionInfo()=default
VpcConnectionInfo & WithUserIdentity(UserIdentityT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue