AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
ProxyConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/KeyValuePair.h>
11#include <aws/ecs/model/ProxyConfigurationType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ECS {
23namespace Model {
24
39 public:
40 AWS_ECS_API ProxyConfiguration() = default;
44
46
49 inline ProxyConfigurationType GetType() const { return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(ProxyConfigurationType value) {
52 m_typeHasBeenSet = true;
53 m_type = value;
54 }
56 SetType(value);
57 return *this;
58 }
60
62
65 inline const Aws::String& GetContainerName() const { return m_containerName; }
66 inline bool ContainerNameHasBeenSet() const { return m_containerNameHasBeenSet; }
67 template <typename ContainerNameT = Aws::String>
68 void SetContainerName(ContainerNameT&& value) {
69 m_containerNameHasBeenSet = true;
70 m_containerName = std::forward<ContainerNameT>(value);
71 }
72 template <typename ContainerNameT = Aws::String>
73 ProxyConfiguration& WithContainerName(ContainerNameT&& value) {
74 SetContainerName(std::forward<ContainerNameT>(value));
75 return *this;
76 }
78
80
104 inline const Aws::Vector<KeyValuePair>& GetProperties() const { return m_properties; }
105 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
106 template <typename PropertiesT = Aws::Vector<KeyValuePair>>
107 void SetProperties(PropertiesT&& value) {
108 m_propertiesHasBeenSet = true;
109 m_properties = std::forward<PropertiesT>(value);
110 }
111 template <typename PropertiesT = Aws::Vector<KeyValuePair>>
112 ProxyConfiguration& WithProperties(PropertiesT&& value) {
113 SetProperties(std::forward<PropertiesT>(value));
114 return *this;
115 }
116 template <typename PropertiesT = KeyValuePair>
117 ProxyConfiguration& AddProperties(PropertiesT&& value) {
118 m_propertiesHasBeenSet = true;
119 m_properties.emplace_back(std::forward<PropertiesT>(value));
120 return *this;
121 }
123 private:
125
126 Aws::String m_containerName;
127
128 Aws::Vector<KeyValuePair> m_properties;
129 bool m_typeHasBeenSet = false;
130 bool m_containerNameHasBeenSet = false;
131 bool m_propertiesHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace ECS
136} // namespace Aws
void SetType(ProxyConfigurationType value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECS_API ProxyConfiguration()=default
ProxyConfiguration & WithProperties(PropertiesT &&value)
const Aws::Vector< KeyValuePair > & GetProperties() const
void SetContainerName(ContainerNameT &&value)
const Aws::String & GetContainerName() const
ProxyConfiguration & AddProperties(PropertiesT &&value)
ProxyConfiguration & WithType(ProxyConfigurationType value)
void SetProperties(PropertiesT &&value)
AWS_ECS_API ProxyConfiguration(Aws::Utils::Json::JsonView jsonValue)
ProxyConfiguration & WithContainerName(ContainerNameT &&value)
ProxyConfigurationType GetType() const
AWS_ECS_API ProxyConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue