9#include <aws/core/client/AWSError.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
36 m_parameterOrigin(parameterOrigin),
37 m_name(std::move(name)),
38 m_boolValue(initialValue)
43 m_parameterOrigin(parameterOrigin),
44 m_name(std::move(name)),
45 m_stringValue(std::move(initialValue))
50 m_parameterOrigin(parameterOrigin),
51 m_name(std::move(name)),
52 m_stringValue(initialValue)
57 m_parameterOrigin(parameterOrigin),
58 m_name(std::move(name)),
59 m_stringArrayValue(initialValue)
63 : m_storedType(storedType),
64 m_parameterOrigin(parameterOrigin),
65 m_name(std::move(name))
80 return m_parameterOrigin;
96 if(m_storedType != ParameterType::BOOLEAN)
97 return GetSetResult::ERROR_WRONG_TYPE;
98 ioValue = m_boolValue;
99 return GetSetResult::SUCCESS;
105 if(m_storedType != ParameterType::STRING)
106 return GetSetResult::ERROR_WRONG_TYPE;
107 ioValue = m_stringValue;
108 return GetSetResult::SUCCESS;
113 if(m_storedType != ParameterType::STRING_ARRAY)
114 return GetSetResult::ERROR_WRONG_TYPE;
115 ioValue = m_stringArrayValue;
116 return GetSetResult::SUCCESS;
121 if(m_storedType != ParameterType::BOOLEAN)
122 return GetSetResult::ERROR_WRONG_TYPE;
123 m_boolValue = iValue;
124 return GetSetResult::SUCCESS;
129 if(m_storedType != ParameterType::STRING)
130 return GetSetResult::ERROR_WRONG_TYPE;
131 m_stringValue = std::move(iValue);
132 return GetSetResult::SUCCESS;
137 if(m_storedType != ParameterType::STRING_ARRAY)
138 return GetSetResult::ERROR_WRONG_TYPE;
139 m_stringArrayValue = iValue;
140 return GetSetResult::SUCCESS;
145 if(m_storedType != ParameterType::STRING_ARRAY)
146 return GetSetResult::ERROR_WRONG_TYPE;
147 m_stringArrayValue = std::move(iValue);
148 return GetSetResult::SUCCESS;
157 return m_stringValue;
162 return m_stringArrayValue;
170 bool m_boolValue =
false;
EndpointParameter(ParameterType storedType, ParameterOrigin parameterOrigin, Aws::String name)
GetSetResult SetStringArray(Aws::Vector< Aws::String > &&iValue)
EndpointParameter(Aws::String name, Aws::String initialValue, ParameterOrigin parameterOrigin=ParameterOrigin::NOT_SET)
ParameterType GetStoredType() const
GetSetResult SetStringArray(const Aws::Vector< Aws::String > &iValue)
const Aws::Vector< Aws::String > & GetStrArrayValueNoCheck() const
Aws::Vector< Aws::String > m_stringArrayValue
EndpointParameter(EndpointParameter &&)=default
GetSetResult SetBool(bool iValue)
Aws::String m_stringValue
const Aws::String & GetName() const
EndpointParameter(Aws::String name, bool initialValue, ParameterOrigin parameterOrigin=ParameterOrigin::NOT_SET)
EndpointParameter(Aws::String name, const Aws::Vector< Aws::String > &initialValue, ParameterOrigin parameterOrigin=ParameterOrigin::NOT_SET)
GetSetResult GetStringArray(Aws::Vector< Aws::String > &ioValue) const
bool GetBoolValueNoCheck() const
EndpointParameter(const EndpointParameter &)=default
const Aws::String & GetStrValueNoCheck() const
GetSetResult GetBool(bool &ioValue) const
EndpointParameter & operator=(EndpointParameter &&)=default
EndpointParameter & operator=(const EndpointParameter &)=default
ParameterOrigin GetParameterOrigin() const
EndpointParameter(Aws::String name, const char *initialValue, ParameterOrigin parameterOrigin=ParameterOrigin::NOT_SET)
ParameterOrigin m_parameterOrigin
GetSetResult SetString(Aws::String iValue)
GetSetResult GetString(Aws::String &ioValue) const
ParameterType m_storedType
Aws::Vector< Aws::Endpoint::EndpointParameter > EndpointParameters
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector