AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
36
37
39
42 inline const Aws::String& GetArn() const { return m_arn; }
43 template<typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
45 template<typename ArnT = Aws::String>
46 CreateTargetGroupResult& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
48
50
53 inline const TargetGroupConfig& GetConfig() const { return m_config; }
54 template<typename ConfigT = TargetGroupConfig>
55 void SetConfig(ConfigT&& value) { m_configHasBeenSet = true; m_config = std::forward<ConfigT>(value); }
56 template<typename ConfigT = TargetGroupConfig>
57 CreateTargetGroupResult& WithConfig(ConfigT&& value) { SetConfig(std::forward<ConfigT>(value)); return *this;}
59
61
64 inline const Aws::String& GetId() const { return m_id; }
65 template<typename IdT = Aws::String>
66 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
67 template<typename IdT = Aws::String>
68 CreateTargetGroupResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 template<typename NameT = Aws::String>
77 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
78 template<typename NameT = Aws::String>
79 CreateTargetGroupResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
81
83
88 inline TargetGroupStatus GetStatus() const { return m_status; }
89 inline void SetStatus(TargetGroupStatus value) { m_statusHasBeenSet = true; m_status = value; }
90 inline CreateTargetGroupResult& WithStatus(TargetGroupStatus value) { SetStatus(value); return *this;}
92
94
97 inline TargetGroupType GetType() const { return m_type; }
98 inline void SetType(TargetGroupType value) { m_typeHasBeenSet = true; m_type = value; }
99 inline CreateTargetGroupResult& WithType(TargetGroupType value) { SetType(value); return *this;}
101
103
104 inline const Aws::String& GetRequestId() const { return m_requestId; }
105 template<typename RequestIdT = Aws::String>
106 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
107 template<typename RequestIdT = Aws::String>
108 CreateTargetGroupResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
110 private:
111
112 Aws::String m_arn;
113 bool m_arnHasBeenSet = false;
114
115 TargetGroupConfig m_config;
116 bool m_configHasBeenSet = false;
117
118 Aws::String m_id;
119 bool m_idHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
125 bool m_statusHasBeenSet = false;
126
128 bool m_typeHasBeenSet = false;
129
130 Aws::String m_requestId;
131 bool m_requestIdHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace VPCLattice
136} // namespace Aws
CreateTargetGroupResult & WithType(TargetGroupType value)
AWS_VPCLATTICE_API CreateTargetGroupResult()=default
CreateTargetGroupResult & WithRequestId(RequestIdT &&value)
CreateTargetGroupResult & WithStatus(TargetGroupStatus value)
AWS_VPCLATTICE_API CreateTargetGroupResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateTargetGroupResult & WithName(NameT &&value)
AWS_VPCLATTICE_API CreateTargetGroupResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateTargetGroupResult & WithId(IdT &&value)
CreateTargetGroupResult & WithArn(ArnT &&value)
CreateTargetGroupResult & WithConfig(ConfigT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue