AWS SDK for C++  1.9.18
AWS SDK for C++
ContentTypeProfiles.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 int GetQuantity() const{ return m_quantity; }
45 
49  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
50 
54  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
55 
59  inline ContentTypeProfiles& WithQuantity(int value) { SetQuantity(value); return *this;}
60 
61 
65  inline const Aws::Vector<ContentTypeProfile>& GetItems() const{ return m_items; }
66 
70  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
71 
75  inline void SetItems(const Aws::Vector<ContentTypeProfile>& value) { m_itemsHasBeenSet = true; m_items = value; }
76 
80  inline void SetItems(Aws::Vector<ContentTypeProfile>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
81 
85  inline ContentTypeProfiles& WithItems(const Aws::Vector<ContentTypeProfile>& value) { SetItems(value); return *this;}
86 
90  inline ContentTypeProfiles& WithItems(Aws::Vector<ContentTypeProfile>&& value) { SetItems(std::move(value)); return *this;}
91 
95  inline ContentTypeProfiles& AddItems(const ContentTypeProfile& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
96 
100  inline ContentTypeProfiles& AddItems(ContentTypeProfile&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
101 
102  private:
103 
104  int m_quantity;
105  bool m_quantityHasBeenSet;
106 
108  bool m_itemsHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace CloudFront
113 } // namespace Aws
Aws::CloudFront::Model::ContentTypeProfiles::AddItems
ContentTypeProfiles & AddItems(const ContentTypeProfile &value)
Definition: ContentTypeProfiles.h:95
Aws::CloudFront::Model::ContentTypeProfiles::SetQuantity
void SetQuantity(int value)
Definition: ContentTypeProfiles.h:54
Aws::CloudFront::Model::ContentTypeProfiles::WithQuantity
ContentTypeProfiles & WithQuantity(int value)
Definition: ContentTypeProfiles.h:59
Aws::CloudFront::Model::ContentTypeProfiles
Definition: ContentTypeProfiles.h:32
Aws::CloudFront::Model::ContentTypeProfiles::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: ContentTypeProfiles.h:70
Aws::CloudFront::Model::ContentTypeProfiles::WithItems
ContentTypeProfiles & WithItems(Aws::Vector< ContentTypeProfile > &&value)
Definition: ContentTypeProfiles.h:90
Aws::CloudFront::Model::ContentTypeProfiles::ContentTypeProfiles
ContentTypeProfiles(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::ContentTypeProfile
Definition: ContentTypeProfile.h:32
Aws::CloudFront::Model::ContentTypeProfiles::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: ContentTypeProfiles.h:49
AWSVector.h
Aws::CloudFront::Model::ContentTypeProfiles::GetItems
const Aws::Vector< ContentTypeProfile > & GetItems() const
Definition: ContentTypeProfiles.h:65
Aws::CloudFront::Model::ContentTypeProfiles::operator=
ContentTypeProfiles & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::ContentTypeProfiles::WithItems
ContentTypeProfiles & WithItems(const Aws::Vector< ContentTypeProfile > &value)
Definition: ContentTypeProfiles.h:85
Aws::CloudFront::Model::ContentTypeProfiles::SetItems
void SetItems(const Aws::Vector< ContentTypeProfile > &value)
Definition: ContentTypeProfiles.h:75
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
Aws::CloudFront::Model::ContentTypeProfiles::AddItems
ContentTypeProfiles & AddItems(ContentTypeProfile &&value)
Definition: ContentTypeProfiles.h:100
CloudFront_EXPORTS.h
Aws::CloudFront::Model::ContentTypeProfiles::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ContentTypeProfile.h
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::ContentTypeProfiles::GetQuantity
int GetQuantity() const
Definition: ContentTypeProfiles.h:44
Aws::CloudFront::Model::ContentTypeProfiles::SetItems
void SetItems(Aws::Vector< ContentTypeProfile > &&value)
Definition: ContentTypeProfiles.h:80
Aws::CloudFront::Model::ContentTypeProfiles::ContentTypeProfiles
ContentTypeProfiles()