AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ParameterConstraints.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFormation
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CLOUDFORMATION_API ParameterConstraints();
39 AWS_CLOUDFORMATION_API ParameterConstraints(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDFORMATION_API ParameterConstraints& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::Vector<Aws::String>& GetAllowedValues() const{ return m_allowedValues; }
51 inline bool AllowedValuesHasBeenSet() const { return m_allowedValuesHasBeenSet; }
52 inline void SetAllowedValues(const Aws::Vector<Aws::String>& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = value; }
53 inline void SetAllowedValues(Aws::Vector<Aws::String>&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues = std::move(value); }
55 inline ParameterConstraints& WithAllowedValues(Aws::Vector<Aws::String>&& value) { SetAllowedValues(std::move(value)); return *this;}
56 inline ParameterConstraints& AddAllowedValues(const Aws::String& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
57 inline ParameterConstraints& AddAllowedValues(Aws::String&& value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(std::move(value)); return *this; }
58 inline ParameterConstraints& AddAllowedValues(const char* value) { m_allowedValuesHasBeenSet = true; m_allowedValues.push_back(value); return *this; }
60 private:
61
62 Aws::Vector<Aws::String> m_allowedValues;
63 bool m_allowedValuesHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace CloudFormation
68} // namespace Aws
const Aws::Vector< Aws::String > & GetAllowedValues() const
void SetAllowedValues(const Aws::Vector< Aws::String > &value)
ParameterConstraints & AddAllowedValues(const Aws::String &value)
ParameterConstraints & AddAllowedValues(Aws::String &&value)
ParameterConstraints & AddAllowedValues(const char *value)
AWS_CLOUDFORMATION_API ParameterConstraints(const Aws::Utils::Xml::XmlNode &xmlNode)
ParameterConstraints & WithAllowedValues(Aws::Vector< Aws::String > &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API ParameterConstraints & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetAllowedValues(Aws::Vector< Aws::String > &&value)
ParameterConstraints & WithAllowedValues(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream