AWS SDK for C++

AWS SDK for C++ Version 1.11.787

Loading...
Searching...
No Matches
IframeConfig.h
1
6#pragma once
7#include <aws/appintegrations/AppIntegrationsService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace AppIntegrationsService {
21namespace Model {
22
29 public:
30 AWS_APPINTEGRATIONSSERVICE_API IframeConfig() = default;
31 AWS_APPINTEGRATIONSSERVICE_API IframeConfig(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPINTEGRATIONSSERVICE_API IframeConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APPINTEGRATIONSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::Vector<Aws::String>& GetAllow() const { return m_allow; }
40 inline bool AllowHasBeenSet() const { return m_allowHasBeenSet; }
41 template <typename AllowT = Aws::Vector<Aws::String>>
42 void SetAllow(AllowT&& value) {
43 m_allowHasBeenSet = true;
44 m_allow = std::forward<AllowT>(value);
45 }
46 template <typename AllowT = Aws::Vector<Aws::String>>
47 IframeConfig& WithAllow(AllowT&& value) {
48 SetAllow(std::forward<AllowT>(value));
49 return *this;
50 }
51 template <typename AllowT = Aws::String>
52 IframeConfig& AddAllow(AllowT&& value) {
53 m_allowHasBeenSet = true;
54 m_allow.emplace_back(std::forward<AllowT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Vector<Aws::String>& GetSandbox() const { return m_sandbox; }
64 inline bool SandboxHasBeenSet() const { return m_sandboxHasBeenSet; }
65 template <typename SandboxT = Aws::Vector<Aws::String>>
66 void SetSandbox(SandboxT&& value) {
67 m_sandboxHasBeenSet = true;
68 m_sandbox = std::forward<SandboxT>(value);
69 }
70 template <typename SandboxT = Aws::Vector<Aws::String>>
71 IframeConfig& WithSandbox(SandboxT&& value) {
72 SetSandbox(std::forward<SandboxT>(value));
73 return *this;
74 }
75 template <typename SandboxT = Aws::String>
76 IframeConfig& AddSandbox(SandboxT&& value) {
77 m_sandboxHasBeenSet = true;
78 m_sandbox.emplace_back(std::forward<SandboxT>(value));
79 return *this;
80 }
82 private:
84
86 bool m_allowHasBeenSet = false;
87 bool m_sandboxHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace AppIntegrationsService
92} // namespace Aws
IframeConfig & WithAllow(AllowT &&value)
AWS_APPINTEGRATIONSSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
IframeConfig & AddAllow(AllowT &&value)
AWS_APPINTEGRATIONSSERVICE_API IframeConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_APPINTEGRATIONSSERVICE_API IframeConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPINTEGRATIONSSERVICE_API IframeConfig()=default
const Aws::Vector< Aws::String > & GetAllow() const
IframeConfig & AddSandbox(SandboxT &&value)
const Aws::Vector< Aws::String > & GetSandbox() const
IframeConfig & WithSandbox(SandboxT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue