AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
StringSchemaConfig.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Xml {
15class XmlNode;
16} // namespace Xml
17} // namespace Utils
18namespace CloudFront {
19namespace Model {
20
27 public:
28 AWS_CLOUDFRONT_API StringSchemaConfig() = default;
29 AWS_CLOUDFRONT_API StringSchemaConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
30 AWS_CLOUDFRONT_API StringSchemaConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
31
32 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
33
35
38 inline const Aws::String& GetComment() const { return m_comment; }
39 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
40 template <typename CommentT = Aws::String>
41 void SetComment(CommentT&& value) {
42 m_commentHasBeenSet = true;
43 m_comment = std::forward<CommentT>(value);
44 }
45 template <typename CommentT = Aws::String>
46 StringSchemaConfig& WithComment(CommentT&& value) {
47 SetComment(std::forward<CommentT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDefaultValue() const { return m_defaultValue; }
57 inline bool DefaultValueHasBeenSet() const { return m_defaultValueHasBeenSet; }
58 template <typename DefaultValueT = Aws::String>
59 void SetDefaultValue(DefaultValueT&& value) {
60 m_defaultValueHasBeenSet = true;
61 m_defaultValue = std::forward<DefaultValueT>(value);
62 }
63 template <typename DefaultValueT = Aws::String>
64 StringSchemaConfig& WithDefaultValue(DefaultValueT&& value) {
65 SetDefaultValue(std::forward<DefaultValueT>(value));
66 return *this;
67 }
69
71
74 inline bool GetRequired() const { return m_required; }
75 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
76 inline void SetRequired(bool value) {
77 m_requiredHasBeenSet = true;
78 m_required = value;
79 }
80 inline StringSchemaConfig& WithRequired(bool value) {
81 SetRequired(value);
82 return *this;
83 }
85 private:
86 Aws::String m_comment;
87
88 Aws::String m_defaultValue;
89
90 bool m_required{false};
91 bool m_commentHasBeenSet = false;
92 bool m_defaultValueHasBeenSet = false;
93 bool m_requiredHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace CloudFront
98} // namespace Aws
StringSchemaConfig & WithDefaultValue(DefaultValueT &&value)
AWS_CLOUDFRONT_API StringSchemaConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API StringSchemaConfig()=default
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
StringSchemaConfig & WithRequired(bool value)
StringSchemaConfig & WithComment(CommentT &&value)
AWS_CLOUDFRONT_API StringSchemaConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String