AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ProxyConfiguration.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/model/ProxyConfigurationType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/KeyValuePair.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ECS
25{
26namespace Model
27{
28
43 {
44 public:
45 AWS_ECS_API ProxyConfiguration() = default;
49
50
52
55 inline ProxyConfigurationType GetType() const { return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 inline void SetType(ProxyConfigurationType value) { m_typeHasBeenSet = true; m_type = value; }
58 inline ProxyConfiguration& WithType(ProxyConfigurationType value) { SetType(value); return *this;}
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) { m_containerNameHasBeenSet = true; m_containerName = std::forward<ContainerNameT>(value); }
69 template<typename ContainerNameT = Aws::String>
70 ProxyConfiguration& WithContainerName(ContainerNameT&& value) { SetContainerName(std::forward<ContainerNameT>(value)); return *this;}
72
74
98 inline const Aws::Vector<KeyValuePair>& GetProperties() const { return m_properties; }
99 inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; }
100 template<typename PropertiesT = Aws::Vector<KeyValuePair>>
101 void SetProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties = std::forward<PropertiesT>(value); }
102 template<typename PropertiesT = Aws::Vector<KeyValuePair>>
103 ProxyConfiguration& WithProperties(PropertiesT&& value) { SetProperties(std::forward<PropertiesT>(value)); return *this;}
104 template<typename PropertiesT = KeyValuePair>
105 ProxyConfiguration& AddProperties(PropertiesT&& value) { m_propertiesHasBeenSet = true; m_properties.emplace_back(std::forward<PropertiesT>(value)); return *this; }
107 private:
108
110 bool m_typeHasBeenSet = false;
111
112 Aws::String m_containerName;
113 bool m_containerNameHasBeenSet = false;
114
115 Aws::Vector<KeyValuePair> m_properties;
116 bool m_propertiesHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace ECS
121} // 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