AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTargetGroupResult.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/vpc-lattice/model/TargetGroupStatus.h>
11#include <aws/vpc-lattice/model/TargetGroupType.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace VPCLattice
27{
28namespace Model
29{
31 {
32 public:
33 AWS_VPCLATTICE_API CreateTargetGroupResult();
36
37
39
42 inline const Aws::String& GetArn() const{ return m_arn; }
43 inline void SetArn(const Aws::String& value) { m_arn = value; }
44 inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
45 inline void SetArn(const char* value) { m_arn.assign(value); }
46 inline CreateTargetGroupResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
47 inline CreateTargetGroupResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
48 inline CreateTargetGroupResult& WithArn(const char* value) { SetArn(value); return *this;}
50
52
55 inline const TargetGroupConfig& GetConfig() const{ return m_config; }
56 inline void SetConfig(const TargetGroupConfig& value) { m_config = value; }
57 inline void SetConfig(TargetGroupConfig&& value) { m_config = std::move(value); }
58 inline CreateTargetGroupResult& WithConfig(const TargetGroupConfig& value) { SetConfig(value); return *this;}
59 inline CreateTargetGroupResult& WithConfig(TargetGroupConfig&& value) { SetConfig(std::move(value)); return *this;}
61
63
66 inline const Aws::String& GetId() const{ return m_id; }
67 inline void SetId(const Aws::String& value) { m_id = value; }
68 inline void SetId(Aws::String&& value) { m_id = std::move(value); }
69 inline void SetId(const char* value) { m_id.assign(value); }
70 inline CreateTargetGroupResult& WithId(const Aws::String& value) { SetId(value); return *this;}
71 inline CreateTargetGroupResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
72 inline CreateTargetGroupResult& WithId(const char* value) { SetId(value); return *this;}
74
76
79 inline const Aws::String& GetName() const{ return m_name; }
80 inline void SetName(const Aws::String& value) { m_name = value; }
81 inline void SetName(Aws::String&& value) { m_name = std::move(value); }
82 inline void SetName(const char* value) { m_name.assign(value); }
83 inline CreateTargetGroupResult& WithName(const Aws::String& value) { SetName(value); return *this;}
84 inline CreateTargetGroupResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
85 inline CreateTargetGroupResult& WithName(const char* value) { SetName(value); return *this;}
87
89
94 inline const TargetGroupStatus& GetStatus() const{ return m_status; }
95 inline void SetStatus(const TargetGroupStatus& value) { m_status = value; }
96 inline void SetStatus(TargetGroupStatus&& value) { m_status = std::move(value); }
97 inline CreateTargetGroupResult& WithStatus(const TargetGroupStatus& value) { SetStatus(value); return *this;}
98 inline CreateTargetGroupResult& WithStatus(TargetGroupStatus&& value) { SetStatus(std::move(value)); return *this;}
100
102
105 inline const TargetGroupType& GetType() const{ return m_type; }
106 inline void SetType(const TargetGroupType& value) { m_type = value; }
107 inline void SetType(TargetGroupType&& value) { m_type = std::move(value); }
108 inline CreateTargetGroupResult& WithType(const TargetGroupType& value) { SetType(value); return *this;}
109 inline CreateTargetGroupResult& WithType(TargetGroupType&& value) { SetType(std::move(value)); return *this;}
111
113
114 inline const Aws::String& GetRequestId() const{ return m_requestId; }
115 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
116 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
117 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
118 inline CreateTargetGroupResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
119 inline CreateTargetGroupResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
120 inline CreateTargetGroupResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
122 private:
123
124 Aws::String m_arn;
125
126 TargetGroupConfig m_config;
127
128 Aws::String m_id;
129
130 Aws::String m_name;
131
132 TargetGroupStatus m_status;
133
134 TargetGroupType m_type;
135
136 Aws::String m_requestId;
137 };
138
139} // namespace Model
140} // namespace VPCLattice
141} // namespace Aws
CreateTargetGroupResult & WithId(const Aws::String &value)
CreateTargetGroupResult & WithRequestId(Aws::String &&value)
CreateTargetGroupResult & WithId(Aws::String &&value)
CreateTargetGroupResult & WithStatus(TargetGroupStatus &&value)
CreateTargetGroupResult & WithName(Aws::String &&value)
CreateTargetGroupResult & WithName(const char *value)
CreateTargetGroupResult & WithStatus(const TargetGroupStatus &value)
CreateTargetGroupResult & WithName(const Aws::String &value)
CreateTargetGroupResult & WithRequestId(const char *value)
CreateTargetGroupResult & WithConfig(const TargetGroupConfig &value)
CreateTargetGroupResult & WithConfig(TargetGroupConfig &&value)
AWS_VPCLATTICE_API CreateTargetGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateTargetGroupResult & WithArn(const Aws::String &value)
CreateTargetGroupResult & WithArn(const char *value)
AWS_VPCLATTICE_API CreateTargetGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateTargetGroupResult & WithType(TargetGroupType &&value)
CreateTargetGroupResult & WithType(const TargetGroupType &value)
CreateTargetGroupResult & WithArn(Aws::String &&value)
CreateTargetGroupResult & WithId(const char *value)
CreateTargetGroupResult & WithRequestId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue