AWS SDK for C++  1.9.14
AWS SDK for C++
ContentTypeProfileConfig.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Xml
16 {
17  class XmlNode;
18 } // namespace Xml
19 } // namespace Utils
20 namespace CloudFront
21 {
22 namespace Model
23 {
24 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
48  inline bool GetForwardWhenContentTypeIsUnknown() const{ return m_forwardWhenContentTypeIsUnknown; }
49 
57  inline bool ForwardWhenContentTypeIsUnknownHasBeenSet() const { return m_forwardWhenContentTypeIsUnknownHasBeenSet; }
58 
66  inline void SetForwardWhenContentTypeIsUnknown(bool value) { m_forwardWhenContentTypeIsUnknownHasBeenSet = true; m_forwardWhenContentTypeIsUnknown = value; }
67 
75  inline ContentTypeProfileConfig& WithForwardWhenContentTypeIsUnknown(bool value) { SetForwardWhenContentTypeIsUnknown(value); return *this;}
76 
77 
81  inline const ContentTypeProfiles& GetContentTypeProfiles() const{ return m_contentTypeProfiles; }
82 
86  inline bool ContentTypeProfilesHasBeenSet() const { return m_contentTypeProfilesHasBeenSet; }
87 
91  inline void SetContentTypeProfiles(const ContentTypeProfiles& value) { m_contentTypeProfilesHasBeenSet = true; m_contentTypeProfiles = value; }
92 
96  inline void SetContentTypeProfiles(ContentTypeProfiles&& value) { m_contentTypeProfilesHasBeenSet = true; m_contentTypeProfiles = std::move(value); }
97 
101  inline ContentTypeProfileConfig& WithContentTypeProfiles(const ContentTypeProfiles& value) { SetContentTypeProfiles(value); return *this;}
102 
106  inline ContentTypeProfileConfig& WithContentTypeProfiles(ContentTypeProfiles&& value) { SetContentTypeProfiles(std::move(value)); return *this;}
107 
108  private:
109 
110  bool m_forwardWhenContentTypeIsUnknown;
111  bool m_forwardWhenContentTypeIsUnknownHasBeenSet;
112 
113  ContentTypeProfiles m_contentTypeProfiles;
114  bool m_contentTypeProfilesHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace CloudFront
119 } // namespace Aws
Aws::CloudFront::Model::ContentTypeProfileConfig::GetContentTypeProfiles
const ContentTypeProfiles & GetContentTypeProfiles() const
Definition: ContentTypeProfileConfig.h:81
Aws::CloudFront::Model::ContentTypeProfiles
Definition: ContentTypeProfiles.h:32
Aws::CloudFront::Model::ContentTypeProfileConfig::GetForwardWhenContentTypeIsUnknown
bool GetForwardWhenContentTypeIsUnknown() const
Definition: ContentTypeProfileConfig.h:48
Aws::CloudFront::Model::ContentTypeProfileConfig::ContentTypeProfileConfig
ContentTypeProfileConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::ContentTypeProfileConfig::ContentTypeProfilesHasBeenSet
bool ContentTypeProfilesHasBeenSet() const
Definition: ContentTypeProfileConfig.h:86
Aws::CloudFront::Model::ContentTypeProfileConfig::operator=
ContentTypeProfileConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::ContentTypeProfileConfig::ContentTypeProfileConfig
ContentTypeProfileConfig()
Aws::CloudFront::Model::ContentTypeProfileConfig::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::ContentTypeProfileConfig::ForwardWhenContentTypeIsUnknownHasBeenSet
bool ForwardWhenContentTypeIsUnknownHasBeenSet() const
Definition: ContentTypeProfileConfig.h:57
Aws::CloudFront::Model::ContentTypeProfileConfig
Definition: ContentTypeProfileConfig.h:32
Aws::CloudFront::Model::ContentTypeProfileConfig::WithContentTypeProfiles
ContentTypeProfileConfig & WithContentTypeProfiles(ContentTypeProfiles &&value)
Definition: ContentTypeProfileConfig.h:106
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::ContentTypeProfileConfig::SetForwardWhenContentTypeIsUnknown
void SetForwardWhenContentTypeIsUnknown(bool value)
Definition: ContentTypeProfileConfig.h:66
Aws::CloudFront::Model::ContentTypeProfileConfig::WithContentTypeProfiles
ContentTypeProfileConfig & WithContentTypeProfiles(const ContentTypeProfiles &value)
Definition: ContentTypeProfileConfig.h:101
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::ContentTypeProfileConfig::WithForwardWhenContentTypeIsUnknown
ContentTypeProfileConfig & WithForwardWhenContentTypeIsUnknown(bool value)
Definition: ContentTypeProfileConfig.h:75
ContentTypeProfiles.h
CloudFront_EXPORTS.h
Aws::CloudFront::Model::ContentTypeProfileConfig::SetContentTypeProfiles
void SetContentTypeProfiles(ContentTypeProfiles &&value)
Definition: ContentTypeProfileConfig.h:96
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::ContentTypeProfileConfig::SetContentTypeProfiles
void SetContentTypeProfiles(const ContentTypeProfiles &value)
Definition: ContentTypeProfileConfig.h:91