AWS SDK for C++  1.9.16
AWS SDK for C++
ContentTypeProfile.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace CloudFront
22 {
23 namespace Model
24 {
25 
32  {
33  public:
37 
38  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
39 
40 
44  inline const Format& GetFormat() const{ return m_format; }
45 
49  inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
50 
54  inline void SetFormat(const Format& value) { m_formatHasBeenSet = true; m_format = value; }
55 
59  inline void SetFormat(Format&& value) { m_formatHasBeenSet = true; m_format = std::move(value); }
60 
64  inline ContentTypeProfile& WithFormat(const Format& value) { SetFormat(value); return *this;}
65 
69  inline ContentTypeProfile& WithFormat(Format&& value) { SetFormat(std::move(value)); return *this;}
70 
71 
76  inline const Aws::String& GetProfileId() const{ return m_profileId; }
77 
82  inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
83 
88  inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; }
89 
94  inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); }
95 
100  inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); }
101 
106  inline ContentTypeProfile& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;}
107 
112  inline ContentTypeProfile& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;}
113 
118  inline ContentTypeProfile& WithProfileId(const char* value) { SetProfileId(value); return *this;}
119 
120 
125  inline const Aws::String& GetContentType() const{ return m_contentType; }
126 
131  inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
132 
137  inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
138 
143  inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
144 
149  inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
150 
155  inline ContentTypeProfile& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
156 
161  inline ContentTypeProfile& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
162 
167  inline ContentTypeProfile& WithContentType(const char* value) { SetContentType(value); return *this;}
168 
169  private:
170 
171  Format m_format;
172  bool m_formatHasBeenSet;
173 
174  Aws::String m_profileId;
175  bool m_profileIdHasBeenSet;
176 
177  Aws::String m_contentType;
178  bool m_contentTypeHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace CloudFront
183 } // namespace Aws
Aws::CloudFront::Model::ContentTypeProfile::SetContentType
void SetContentType(Aws::String &&value)
Definition: ContentTypeProfile.h:143
Aws::CloudFront::Model::Format
Format
Definition: Format.h:17
Aws::CloudFront::Model::ContentTypeProfile::WithFormat
ContentTypeProfile & WithFormat(const Format &value)
Definition: ContentTypeProfile.h:64
Aws::CloudFront::Model::ContentTypeProfile::WithFormat
ContentTypeProfile & WithFormat(Format &&value)
Definition: ContentTypeProfile.h:69
Aws::CloudFront::Model::ContentTypeProfile::ContentTypeHasBeenSet
bool ContentTypeHasBeenSet() const
Definition: ContentTypeProfile.h:131
Aws::CloudFront::Model::ContentTypeProfile::WithContentType
ContentTypeProfile & WithContentType(const char *value)
Definition: ContentTypeProfile.h:167
Aws::CloudFront::Model::ContentTypeProfile::SetContentType
void SetContentType(const Aws::String &value)
Definition: ContentTypeProfile.h:137
Aws::CloudFront::Model::ContentTypeProfile::WithProfileId
ContentTypeProfile & WithProfileId(Aws::String &&value)
Definition: ContentTypeProfile.h:112
Aws::CloudFront::Model::ContentTypeProfile
Definition: ContentTypeProfile.h:32
Aws::CloudFront::Model::ContentTypeProfile::WithProfileId
ContentTypeProfile & WithProfileId(const Aws::String &value)
Definition: ContentTypeProfile.h:106
Aws::CloudFront::Model::ContentTypeProfile::GetContentType
const Aws::String & GetContentType() const
Definition: ContentTypeProfile.h:125
Format.h
Aws::CloudFront::Model::ContentTypeProfile::SetProfileId
void SetProfileId(const char *value)
Definition: ContentTypeProfile.h:100
Aws::CloudFront::Model::ContentTypeProfile::ProfileIdHasBeenSet
bool ProfileIdHasBeenSet() const
Definition: ContentTypeProfile.h:82
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::ContentTypeProfile::GetProfileId
const Aws::String & GetProfileId() const
Definition: ContentTypeProfile.h:76
Aws::CloudFront::Model::ContentTypeProfile::GetFormat
const Format & GetFormat() const
Definition: ContentTypeProfile.h:44
Aws::CloudFront::Model::ContentTypeProfile::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
Aws::CloudFront::Model::ContentTypeProfile::operator=
ContentTypeProfile & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSString.h
Aws::CloudFront::Model::ContentTypeProfile::ContentTypeProfile
ContentTypeProfile()
Aws::CloudFront::Model::ContentTypeProfile::SetFormat
void SetFormat(const Format &value)
Definition: ContentTypeProfile.h:54
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::ContentTypeProfile::SetProfileId
void SetProfileId(Aws::String &&value)
Definition: ContentTypeProfile.h:94
Aws::CloudFront::Model::ContentTypeProfile::ContentTypeProfile
ContentTypeProfile(const Aws::Utils::Xml::XmlNode &xmlNode)
CloudFront_EXPORTS.h
Aws::CloudFront::Model::ContentTypeProfile::SetProfileId
void SetProfileId(const Aws::String &value)
Definition: ContentTypeProfile.h:88
Aws::CloudFront::Model::ContentTypeProfile::SetFormat
void SetFormat(Format &&value)
Definition: ContentTypeProfile.h:59
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::ContentTypeProfile::WithContentType
ContentTypeProfile & WithContentType(Aws::String &&value)
Definition: ContentTypeProfile.h:161
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CloudFront::Model::ContentTypeProfile::FormatHasBeenSet
bool FormatHasBeenSet() const
Definition: ContentTypeProfile.h:49
Aws::CloudFront::Model::ContentTypeProfile::WithProfileId
ContentTypeProfile & WithProfileId(const char *value)
Definition: ContentTypeProfile.h:118
Aws::CloudFront::Model::ContentTypeProfile::WithContentType
ContentTypeProfile & WithContentType(const Aws::String &value)
Definition: ContentTypeProfile.h:155
Aws::CloudFront::Model::ContentTypeProfile::SetContentType
void SetContentType(const char *value)
Definition: ContentTypeProfile.h:149