AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
VpcLatticeConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
30 public:
31 AWS_ECS_API VpcLatticeConfiguration() = default;
35
37
42 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
43 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
44 template <typename RoleArnT = Aws::String>
45 void SetRoleArn(RoleArnT&& value) {
46 m_roleArnHasBeenSet = true;
47 m_roleArn = std::forward<RoleArnT>(value);
48 }
49 template <typename RoleArnT = Aws::String>
51 SetRoleArn(std::forward<RoleArnT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetTargetGroupArn() const { return m_targetGroupArn; }
63 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
64 template <typename TargetGroupArnT = Aws::String>
65 void SetTargetGroupArn(TargetGroupArnT&& value) {
66 m_targetGroupArnHasBeenSet = true;
67 m_targetGroupArn = std::forward<TargetGroupArnT>(value);
68 }
69 template <typename TargetGroupArnT = Aws::String>
70 VpcLatticeConfiguration& WithTargetGroupArn(TargetGroupArnT&& value) {
71 SetTargetGroupArn(std::forward<TargetGroupArnT>(value));
72 return *this;
73 }
75
77
82 inline const Aws::String& GetPortName() const { return m_portName; }
83 inline bool PortNameHasBeenSet() const { return m_portNameHasBeenSet; }
84 template <typename PortNameT = Aws::String>
85 void SetPortName(PortNameT&& value) {
86 m_portNameHasBeenSet = true;
87 m_portName = std::forward<PortNameT>(value);
88 }
89 template <typename PortNameT = Aws::String>
91 SetPortName(std::forward<PortNameT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_roleArn;
97
98 Aws::String m_targetGroupArn;
99
100 Aws::String m_portName;
101 bool m_roleArnHasBeenSet = false;
102 bool m_targetGroupArnHasBeenSet = false;
103 bool m_portNameHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace ECS
108} // namespace Aws
void SetTargetGroupArn(TargetGroupArnT &&value)
AWS_ECS_API VpcLatticeConfiguration()=default
VpcLatticeConfiguration & WithPortName(PortNameT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
VpcLatticeConfiguration & WithTargetGroupArn(TargetGroupArnT &&value)
AWS_ECS_API VpcLatticeConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API VpcLatticeConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
VpcLatticeConfiguration & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue