AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginSslProtocols.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/cloudfront/model/SslProtocol.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace CloudFront
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_CLOUDFRONT_API OriginSslProtocols();
37 AWS_CLOUDFRONT_API OriginSslProtocols(const Aws::Utils::Xml::XmlNode& xmlNode);
38 AWS_CLOUDFRONT_API OriginSslProtocols& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
48 inline int GetQuantity() const{ return m_quantity; }
49 inline bool QuantityHasBeenSet() const { return m_quantityHasBeenSet; }
50 inline void SetQuantity(int value) { m_quantityHasBeenSet = true; m_quantity = value; }
51 inline OriginSslProtocols& WithQuantity(int value) { SetQuantity(value); return *this;}
53
55
58 inline const Aws::Vector<SslProtocol>& GetItems() const{ return m_items; }
59 inline bool ItemsHasBeenSet() const { return m_itemsHasBeenSet; }
60 inline void SetItems(const Aws::Vector<SslProtocol>& value) { m_itemsHasBeenSet = true; m_items = value; }
61 inline void SetItems(Aws::Vector<SslProtocol>&& value) { m_itemsHasBeenSet = true; m_items = std::move(value); }
62 inline OriginSslProtocols& WithItems(const Aws::Vector<SslProtocol>& value) { SetItems(value); return *this;}
63 inline OriginSslProtocols& WithItems(Aws::Vector<SslProtocol>&& value) { SetItems(std::move(value)); return *this;}
64 inline OriginSslProtocols& AddItems(const SslProtocol& value) { m_itemsHasBeenSet = true; m_items.push_back(value); return *this; }
65 inline OriginSslProtocols& AddItems(SslProtocol&& value) { m_itemsHasBeenSet = true; m_items.push_back(std::move(value)); return *this; }
67 private:
68
69 int m_quantity;
70 bool m_quantityHasBeenSet = false;
71
73 bool m_itemsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace CloudFront
78} // namespace Aws
OriginSslProtocols & AddItems(SslProtocol &&value)
OriginSslProtocols & WithItems(const Aws::Vector< SslProtocol > &value)
AWS_CLOUDFRONT_API OriginSslProtocols & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFRONT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
OriginSslProtocols & AddItems(const SslProtocol &value)
const Aws::Vector< SslProtocol > & GetItems() const
AWS_CLOUDFRONT_API OriginSslProtocols(const Aws::Utils::Xml::XmlNode &xmlNode)
OriginSslProtocols & WithQuantity(int value)
OriginSslProtocols & WithItems(Aws::Vector< SslProtocol > &&value)
void SetItems(const Aws::Vector< SslProtocol > &value)
void SetItems(Aws::Vector< SslProtocol > &&value)
std::vector< T, Aws::Allocator< T > > Vector