AWS SDK for C++  1.9.21
AWS SDK for C++
OriginSslProtocols.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 
34  {
35  public:
39 
40  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41 
42 
47  inline int GetQuantity() const{ return m_quantity; }
48 
53  inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
54 
59  inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
60 
65  inline OriginSslProtocols& WithQuantity(int value) { SetQuantity(value); return *this;}
66 
67 
71  inline const Aws::Vector<SslProtocol>& GetItems() const{ return m_items; }
72 
76  inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
77 
81  inline void SetItems(const Aws::Vector<SslProtocol>& value) { m_itemsHasBeenSet = true; m_items = value; }
82 
86  inline void SetItems(Aws::Vector<SslProtocol>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
87 
91  inline OriginSslProtocols& WithItems(const Aws::Vector<SslProtocol>& value) { SetItems(value); return *this;}
92 
96  inline OriginSslProtocols& WithItems(Aws::Vector<SslProtocol>&& value) { SetItems(std::move(value)); return *this;}
97 
101  inline OriginSslProtocols& AddItems(const SslProtocol& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
102 
106  inline OriginSslProtocols& AddItems(SslProtocol&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
107 
108  private:
109 
110  int m_quantity;
111  bool m_quantityHasBeenSet;
112 
113  Aws::Vector<SslProtocol> m_items;
114  bool m_itemsHasBeenSet;
115  };
116 
117 } // namespace Model
118 } // namespace CloudFront
119 } // namespace Aws
Aws::CloudFront::Model::OriginSslProtocols::SetItems
void SetItems(const Aws::Vector< SslProtocol > &value)
Definition: OriginSslProtocols.h:81
Aws::CloudFront::Model::OriginSslProtocols::OriginSslProtocols
OriginSslProtocols()
Aws::CloudFront::Model::OriginSslProtocols::SetItems
void SetItems(Aws::Vector< SslProtocol > &&value)
Definition: OriginSslProtocols.h:86
Aws::CloudFront::Model::OriginSslProtocols::WithQuantity
OriginSslProtocols & WithQuantity(int value)
Definition: OriginSslProtocols.h:65
Aws::CloudFront::Model::OriginSslProtocols::AddItems
OriginSslProtocols & AddItems(SslProtocol &&value)
Definition: OriginSslProtocols.h:106
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::CloudFront::Model::OriginSslProtocols::OriginSslProtocols
OriginSslProtocols(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginSslProtocols::ItemsHasBeenSet
bool ItemsHasBeenSet() const
Definition: OriginSslProtocols.h:76
Aws::CloudFront::Model::OriginSslProtocols::GetItems
const Aws::Vector< SslProtocol > & GetItems() const
Definition: OriginSslProtocols.h:71
AWSVector.h
Aws::CloudFront::Model::OriginSslProtocols::operator=
OriginSslProtocols & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::CloudFront::Model::OriginSslProtocols::WithItems
OriginSslProtocols & WithItems(Aws::Vector< SslProtocol > &&value)
Definition: OriginSslProtocols.h:96
Aws::CloudFront::Model::OriginSslProtocols::QuantityHasBeenSet
bool QuantityHasBeenSet() const
Definition: OriginSslProtocols.h:53
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::CloudFront::Model::OriginSslProtocols::GetQuantity
int GetQuantity() const
Definition: OriginSslProtocols.h:47
AWS_CLOUDFRONT_API
#define AWS_CLOUDFRONT_API
Definition: CloudFront_EXPORTS.h:28
CloudFront_EXPORTS.h
Aws::CloudFront::Model::OriginSslProtocols::AddItems
OriginSslProtocols & AddItems(const SslProtocol &value)
Definition: OriginSslProtocols.h:101
Aws::CloudFront::Model::SslProtocol
SslProtocol
Definition: SslProtocol.h:17
Aws
Definition: AccessManagementClient.h:15
Aws::CloudFront::Model::OriginSslProtocols
Definition: OriginSslProtocols.h:34
Aws::CloudFront::Model::OriginSslProtocols::SetQuantity
void SetQuantity(int value)
Definition: OriginSslProtocols.h:59
Aws::CloudFront::Model::OriginSslProtocols::WithItems
OriginSslProtocols & WithItems(const Aws::Vector< SslProtocol > &value)
Definition: OriginSslProtocols.h:91
SslProtocol.h
Aws::CloudFront::Model::OriginSslProtocols::AddToNode
void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const