AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
OptionSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticBeanstalk {
20namespace Model {
21
29 public:
30 AWS_ELASTICBEANSTALK_API OptionSpecification() = default;
31 AWS_ELASTICBEANSTALK_API OptionSpecification(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICBEANSTALK_API OptionSpecification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
35 const char* locationValue) const;
36 AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetResourceName() const { return m_resourceName; }
43 inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; }
44 template <typename ResourceNameT = Aws::String>
45 void SetResourceName(ResourceNameT&& value) {
46 m_resourceNameHasBeenSet = true;
47 m_resourceName = std::forward<ResourceNameT>(value);
48 }
49 template <typename ResourceNameT = Aws::String>
50 OptionSpecification& WithResourceName(ResourceNameT&& value) {
51 SetResourceName(std::forward<ResourceNameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetNamespace() const { return m_namespace; }
61 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
62 template <typename NamespaceT = Aws::String>
63 void SetNamespace(NamespaceT&& value) {
64 m_namespaceHasBeenSet = true;
65 m_namespace = std::forward<NamespaceT>(value);
66 }
67 template <typename NamespaceT = Aws::String>
68 OptionSpecification& WithNamespace(NamespaceT&& value) {
69 SetNamespace(std::forward<NamespaceT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetOptionName() const { return m_optionName; }
79 inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; }
80 template <typename OptionNameT = Aws::String>
81 void SetOptionName(OptionNameT&& value) {
82 m_optionNameHasBeenSet = true;
83 m_optionName = std::forward<OptionNameT>(value);
84 }
85 template <typename OptionNameT = Aws::String>
86 OptionSpecification& WithOptionName(OptionNameT&& value) {
87 SetOptionName(std::forward<OptionNameT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_resourceName;
93
94 Aws::String m_namespace;
95
96 Aws::String m_optionName;
97 bool m_resourceNameHasBeenSet = false;
98 bool m_namespaceHasBeenSet = false;
99 bool m_optionNameHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace ElasticBeanstalk
104} // namespace Aws
OptionSpecification & WithResourceName(ResourceNameT &&value)
AWS_ELASTICBEANSTALK_API OptionSpecification()=default
AWS_ELASTICBEANSTALK_API OptionSpecification & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream &oStream, const char *location) const
OptionSpecification & WithNamespace(NamespaceT &&value)
AWS_ELASTICBEANSTALK_API OptionSpecification(const Aws::Utils::Xml::XmlNode &xmlNode)
OptionSpecification & WithOptionName(OptionNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream