AWS SDK for C++

AWS SDK for C++ Version 1.11.909

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
61 inline const Aws::String& GetNamespace() const { return m_namespace; }
62 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
63 template <typename NamespaceT = Aws::String>
64 void SetNamespace(NamespaceT&& value) {
65 m_namespaceHasBeenSet = true;
66 m_namespace = std::forward<NamespaceT>(value);
67 }
68 template <typename NamespaceT = Aws::String>
69 OptionSpecification& WithNamespace(NamespaceT&& value) {
70 SetNamespace(std::forward<NamespaceT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetOptionName() const { return m_optionName; }
80 inline bool OptionNameHasBeenSet() const { return m_optionNameHasBeenSet; }
81 template <typename OptionNameT = Aws::String>
82 void SetOptionName(OptionNameT&& value) {
83 m_optionNameHasBeenSet = true;
84 m_optionName = std::forward<OptionNameT>(value);
85 }
86 template <typename OptionNameT = Aws::String>
87 OptionSpecification& WithOptionName(OptionNameT&& value) {
88 SetOptionName(std::forward<OptionNameT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_resourceName;
94
95 Aws::String m_namespace;
96
97 Aws::String m_optionName;
98 bool m_resourceNameHasBeenSet = false;
99 bool m_namespaceHasBeenSet = false;
100 bool m_optionNameHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ElasticBeanstalk
105} // 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