AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Xml
16{
17 class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace CloudFront
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_CLOUDFRONT_API StringSchemaConfig() = default;
34 AWS_CLOUDFRONT_API StringSchemaConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_CLOUDFRONT_API StringSchemaConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
38
39
41
44 inline const Aws::String& GetComment() const { return m_comment; }
45 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
46 template<typename CommentT = Aws::String>
47 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
48 template<typename CommentT = Aws::String>
49 StringSchemaConfig& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
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) { m_defaultValueHasBeenSet = true; m_defaultValue = std::forward<DefaultValueT>(value); }
60 template<typename DefaultValueT = Aws::String>
61 StringSchemaConfig& WithDefaultValue(DefaultValueT&& value) { SetDefaultValue(std::forward<DefaultValueT>(value)); return *this;}
63
65
68 inline bool GetRequired() const { return m_required; }
69 inline bool RequiredHasBeenSet() const { return m_requiredHasBeenSet; }
70 inline void SetRequired(bool value) { m_requiredHasBeenSet = true; m_required = value; }
71 inline StringSchemaConfig& WithRequired(bool value) { SetRequired(value); return *this;}
73 private:
74
75 Aws::String m_comment;
76 bool m_commentHasBeenSet = false;
77
78 Aws::String m_defaultValue;
79 bool m_defaultValueHasBeenSet = false;
80
81 bool m_required{false};
82 bool m_requiredHasBeenSet = false;
83 };
84
85} // namespace Model
86} // namespace CloudFront
87} // 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