AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
CookieSynchronizationConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
9#include <aws/workspaces-web/model/CookieSpecification.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WorkSpacesWeb {
21namespace Model {
22
31 public:
32 AWS_WORKSPACESWEB_API CookieSynchronizationConfiguration() = default;
35 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::Vector<CookieSpecification>& GetAllowlist() const { return m_allowlist; }
43 inline bool AllowlistHasBeenSet() const { return m_allowlistHasBeenSet; }
44 template <typename AllowlistT = Aws::Vector<CookieSpecification>>
45 void SetAllowlist(AllowlistT&& value) {
46 m_allowlistHasBeenSet = true;
47 m_allowlist = std::forward<AllowlistT>(value);
48 }
49 template <typename AllowlistT = Aws::Vector<CookieSpecification>>
51 SetAllowlist(std::forward<AllowlistT>(value));
52 return *this;
53 }
54 template <typename AllowlistT = CookieSpecification>
56 m_allowlistHasBeenSet = true;
57 m_allowlist.emplace_back(std::forward<AllowlistT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<CookieSpecification>& GetBlocklist() const { return m_blocklist; }
68 inline bool BlocklistHasBeenSet() const { return m_blocklistHasBeenSet; }
69 template <typename BlocklistT = Aws::Vector<CookieSpecification>>
70 void SetBlocklist(BlocklistT&& value) {
71 m_blocklistHasBeenSet = true;
72 m_blocklist = std::forward<BlocklistT>(value);
73 }
74 template <typename BlocklistT = Aws::Vector<CookieSpecification>>
76 SetBlocklist(std::forward<BlocklistT>(value));
77 return *this;
78 }
79 template <typename BlocklistT = CookieSpecification>
81 m_blocklistHasBeenSet = true;
82 m_blocklist.emplace_back(std::forward<BlocklistT>(value));
83 return *this;
84 }
86 private:
88
90 bool m_allowlistHasBeenSet = false;
91 bool m_blocklistHasBeenSet = false;
92};
93
94} // namespace Model
95} // namespace WorkSpacesWeb
96} // namespace Aws
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue