AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetTargetGroupResult.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/vpc-lattice/model/TargetGroupConfig.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/vpc-lattice/model/TargetGroupStatus.h>
13#include <aws/vpc-lattice/model/TargetGroupType.h>
14#include <utility>
15
16namespace Aws
17{
18template<typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils
22{
23namespace Json
24{
25 class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace VPCLattice
29{
30namespace Model
31{
33 {
34 public:
35 AWS_VPCLATTICE_API GetTargetGroupResult();
38
39
41
44 inline const Aws::String& GetArn() const{ return m_arn; }
45 inline void SetArn(const Aws::String& value) { m_arn = value; }
46 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
47 inline void SetArn(const char* value) { m_arn.assign(value); }
48 inline GetTargetGroupResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
49 inline GetTargetGroupResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
50 inline GetTargetGroupResult& WithArn(const char* value) { SetArn(value); return *this;}
52
54
57 inline const TargetGroupConfig& GetConfig() const{ return m_config; }
58 inline void SetConfig(const TargetGroupConfig& value) { m_config = value; }
59 inline void SetConfig(TargetGroupConfig&& value) { m_config = std::move(value); }
60 inline GetTargetGroupResult& WithConfig(const TargetGroupConfig& value) { SetConfig(value); return *this;}
61 inline GetTargetGroupResult& WithConfig(TargetGroupConfig&& value) { SetConfig(std::move(value)); return *this;}
63
65
69 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
70 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAt = value; }
71 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAt = std::move(value); }
72 inline GetTargetGroupResult& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
73 inline GetTargetGroupResult& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
75
77
80 inline const Aws::String& GetFailureCode() const{ return m_failureCode; }
81 inline void SetFailureCode(const Aws::String& value) { m_failureCode = value; }
82 inline void SetFailureCode(Aws::String&& value) { m_failureCode = std::move(value); }
83 inline void SetFailureCode(const char* value) { m_failureCode.assign(value); }
84 inline GetTargetGroupResult& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;}
85 inline GetTargetGroupResult& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;}
86 inline GetTargetGroupResult& WithFailureCode(const char* value) { SetFailureCode(value); return *this;}
88
90
93 inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; }
94 inline void SetFailureMessage(const Aws::String& value) { m_failureMessage = value; }
95 inline void SetFailureMessage(Aws::String&& value) { m_failureMessage = std::move(value); }
96 inline void SetFailureMessage(const char* value) { m_failureMessage.assign(value); }
97 inline GetTargetGroupResult& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;}
98 inline GetTargetGroupResult& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;}
99 inline GetTargetGroupResult& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;}
101
103
106 inline const Aws::String& GetId() const{ return m_id; }
107 inline void SetId(const Aws::String& value) { m_id = value; }
108 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
109 inline void SetId(const char* value) { m_id.assign(value); }
110 inline GetTargetGroupResult& WithId(const Aws::String& value) { SetId(value); return *this;}
111 inline GetTargetGroupResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
112 inline GetTargetGroupResult& WithId(const char* value) { SetId(value); return *this;}
114
116
120 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; }
121 inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAt = value; }
122 inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAt = std::move(value); }
124 inline GetTargetGroupResult& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;}
126
128
131 inline const Aws::String& GetName() const{ return m_name; }
132 inline void SetName(const Aws::String& value) { m_name = value; }
133 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
134 inline void SetName(const char* value) { m_name.assign(value); }
135 inline GetTargetGroupResult& WithName(const Aws::String& value) { SetName(value); return *this;}
136 inline GetTargetGroupResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
137 inline GetTargetGroupResult& WithName(const char* value) { SetName(value); return *this;}
139
141
144 inline const Aws::Vector<Aws::String>& GetServiceArns() const{ return m_serviceArns; }
145 inline void SetServiceArns(const Aws::Vector<Aws::String>& value) { m_serviceArns = value; }
146 inline void SetServiceArns(Aws::Vector<Aws::String>&& value) { m_serviceArns = std::move(value); }
148 inline GetTargetGroupResult& WithServiceArns(Aws::Vector<Aws::String>&& value) { SetServiceArns(std::move(value)); return *this;}
149 inline GetTargetGroupResult& AddServiceArns(const Aws::String& value) { m_serviceArns.push_back(value); return *this; }
150 inline GetTargetGroupResult& AddServiceArns(Aws::String&& value) { m_serviceArns.push_back(std::move(value)); return *this; }
151 inline GetTargetGroupResult& AddServiceArns(const char* value) { m_serviceArns.push_back(value); return *this; }
153
155
158 inline const TargetGroupStatus& GetStatus() const{ return m_status; }
159 inline void SetStatus(const TargetGroupStatus& value) { m_status = value; }
160 inline void SetStatus(TargetGroupStatus&& value) { m_status = std::move(value); }
161 inline GetTargetGroupResult& WithStatus(const TargetGroupStatus& value) { SetStatus(value); return *this;}
162 inline GetTargetGroupResult& WithStatus(TargetGroupStatus&& value) { SetStatus(std::move(value)); return *this;}
164
166
169 inline const TargetGroupType& GetType() const{ return m_type; }
170 inline void SetType(const TargetGroupType& value) { m_type = value; }
171 inline void SetType(TargetGroupType&& value) { m_type = std::move(value); }
172 inline GetTargetGroupResult& WithType(const TargetGroupType& value) { SetType(value); return *this;}
173 inline GetTargetGroupResult& WithType(TargetGroupType&& value) { SetType(std::move(value)); return *this;}
175
177
178 inline const Aws::String& GetRequestId() const{ return m_requestId; }
179 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
180 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
181 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
182 inline GetTargetGroupResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
183 inline GetTargetGroupResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
184 inline GetTargetGroupResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
186 private:
187
188 Aws::String m_arn;
189
190 TargetGroupConfig m_config;
191
192 Aws::Utils::DateTime m_createdAt;
193
194 Aws::String m_failureCode;
195
196 Aws::String m_failureMessage;
197
198 Aws::String m_id;
199
200 Aws::Utils::DateTime m_lastUpdatedAt;
201
202 Aws::String m_name;
203
204 Aws::Vector<Aws::String> m_serviceArns;
205
206 TargetGroupStatus m_status;
207
208 TargetGroupType m_type;
209
210 Aws::String m_requestId;
211 };
212
213} // namespace Model
214} // namespace VPCLattice
215} // namespace Aws
GetTargetGroupResult & WithId(Aws::String &&value)
const TargetGroupConfig & GetConfig() const
GetTargetGroupResult & WithArn(const char *value)
const Aws::Vector< Aws::String > & GetServiceArns() const
GetTargetGroupResult & WithType(const TargetGroupType &value)
void SetType(const TargetGroupType &value)
GetTargetGroupResult & WithId(const Aws::String &value)
GetTargetGroupResult & WithStatus(const TargetGroupStatus &value)
GetTargetGroupResult & WithFailureMessage(const char *value)
AWS_VPCLATTICE_API GetTargetGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetStatus(const TargetGroupStatus &value)
GetTargetGroupResult & WithFailureCode(const char *value)
void SetFailureMessage(const Aws::String &value)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
GetTargetGroupResult & WithLastUpdatedAt(const Aws::Utils::DateTime &value)
GetTargetGroupResult & WithConfig(TargetGroupConfig &&value)
void SetServiceArns(Aws::Vector< Aws::String > &&value)
GetTargetGroupResult & WithName(Aws::String &&value)
void SetLastUpdatedAt(Aws::Utils::DateTime &&value)
GetTargetGroupResult & AddServiceArns(const char *value)
GetTargetGroupResult & WithArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetTargetGroupResult & WithRequestId(const Aws::String &value)
AWS_VPCLATTICE_API GetTargetGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetTargetGroupResult & WithLastUpdatedAt(Aws::Utils::DateTime &&value)
void SetServiceArns(const Aws::Vector< Aws::String > &value)
GetTargetGroupResult & WithName(const Aws::String &value)
GetTargetGroupResult & WithArn(Aws::String &&value)
GetTargetGroupResult & WithRequestId(const char *value)
GetTargetGroupResult & WithServiceArns(Aws::Vector< Aws::String > &&value)
GetTargetGroupResult & WithId(const char *value)
GetTargetGroupResult & WithCreatedAt(Aws::Utils::DateTime &&value)
GetTargetGroupResult & WithFailureCode(Aws::String &&value)
GetTargetGroupResult & WithFailureCode(const Aws::String &value)
GetTargetGroupResult & WithFailureMessage(const Aws::String &value)
const TargetGroupStatus & GetStatus() const
GetTargetGroupResult & WithFailureMessage(Aws::String &&value)
GetTargetGroupResult & AddServiceArns(Aws::String &&value)
void SetLastUpdatedAt(const Aws::Utils::DateTime &value)
GetTargetGroupResult & WithType(TargetGroupType &&value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
GetTargetGroupResult & WithConfig(const TargetGroupConfig &value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
GetTargetGroupResult & WithRequestId(Aws::String &&value)
GetTargetGroupResult & WithName(const char *value)
GetTargetGroupResult & WithStatus(TargetGroupStatus &&value)
void SetConfig(const TargetGroupConfig &value)
GetTargetGroupResult & WithServiceArns(const Aws::Vector< Aws::String > &value)
GetTargetGroupResult & AddServiceArns(const Aws::String &value)
GetTargetGroupResult & WithCreatedAt(const Aws::Utils::DateTime &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