AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
SpekeKeyProvider.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/mediapackage/MediaPackage_EXPORTS.h>
10#include <aws/mediapackage/model/EncryptionContractConfiguration.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace MediaPackage {
22namespace Model {
23
32 public:
33 AWS_MEDIAPACKAGE_API SpekeKeyProvider() = default;
34 AWS_MEDIAPACKAGE_API SpekeKeyProvider(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MEDIAPACKAGE_API SpekeKeyProvider& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
47 inline const Aws::String& GetCertificateArn() const { return m_certificateArn; }
48 inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
49 template <typename CertificateArnT = Aws::String>
50 void SetCertificateArn(CertificateArnT&& value) {
51 m_certificateArnHasBeenSet = true;
52 m_certificateArn = std::forward<CertificateArnT>(value);
53 }
54 template <typename CertificateArnT = Aws::String>
55 SpekeKeyProvider& WithCertificateArn(CertificateArnT&& value) {
56 SetCertificateArn(std::forward<CertificateArnT>(value));
57 return *this;
58 }
60
62
63 inline const EncryptionContractConfiguration& GetEncryptionContractConfiguration() const { return m_encryptionContractConfiguration; }
64 inline bool EncryptionContractConfigurationHasBeenSet() const { return m_encryptionContractConfigurationHasBeenSet; }
65 template <typename EncryptionContractConfigurationT = EncryptionContractConfiguration>
66 void SetEncryptionContractConfiguration(EncryptionContractConfigurationT&& value) {
67 m_encryptionContractConfigurationHasBeenSet = true;
68 m_encryptionContractConfiguration = std::forward<EncryptionContractConfigurationT>(value);
69 }
70 template <typename EncryptionContractConfigurationT = EncryptionContractConfiguration>
71 SpekeKeyProvider& WithEncryptionContractConfiguration(EncryptionContractConfigurationT&& value) {
72 SetEncryptionContractConfiguration(std::forward<EncryptionContractConfigurationT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetResourceId() const { return m_resourceId; }
82 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
83 template <typename ResourceIdT = Aws::String>
84 void SetResourceId(ResourceIdT&& value) {
85 m_resourceIdHasBeenSet = true;
86 m_resourceId = std::forward<ResourceIdT>(value);
87 }
88 template <typename ResourceIdT = Aws::String>
89 SpekeKeyProvider& WithResourceId(ResourceIdT&& value) {
90 SetResourceId(std::forward<ResourceIdT>(value));
91 return *this;
92 }
94
96
102 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
103 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
104 template <typename RoleArnT = Aws::String>
105 void SetRoleArn(RoleArnT&& value) {
106 m_roleArnHasBeenSet = true;
107 m_roleArn = std::forward<RoleArnT>(value);
108 }
109 template <typename RoleArnT = Aws::String>
110 SpekeKeyProvider& WithRoleArn(RoleArnT&& value) {
111 SetRoleArn(std::forward<RoleArnT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Vector<Aws::String>& GetSystemIds() const { return m_systemIds; }
121 inline bool SystemIdsHasBeenSet() const { return m_systemIdsHasBeenSet; }
122 template <typename SystemIdsT = Aws::Vector<Aws::String>>
123 void SetSystemIds(SystemIdsT&& value) {
124 m_systemIdsHasBeenSet = true;
125 m_systemIds = std::forward<SystemIdsT>(value);
126 }
127 template <typename SystemIdsT = Aws::Vector<Aws::String>>
128 SpekeKeyProvider& WithSystemIds(SystemIdsT&& value) {
129 SetSystemIds(std::forward<SystemIdsT>(value));
130 return *this;
131 }
132 template <typename SystemIdsT = Aws::String>
133 SpekeKeyProvider& AddSystemIds(SystemIdsT&& value) {
134 m_systemIdsHasBeenSet = true;
135 m_systemIds.emplace_back(std::forward<SystemIdsT>(value));
136 return *this;
137 }
139
141
144 inline const Aws::String& GetUrl() const { return m_url; }
145 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
146 template <typename UrlT = Aws::String>
147 void SetUrl(UrlT&& value) {
148 m_urlHasBeenSet = true;
149 m_url = std::forward<UrlT>(value);
150 }
151 template <typename UrlT = Aws::String>
152 SpekeKeyProvider& WithUrl(UrlT&& value) {
153 SetUrl(std::forward<UrlT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_certificateArn;
159
160 EncryptionContractConfiguration m_encryptionContractConfiguration;
161
162 Aws::String m_resourceId;
163
164 Aws::String m_roleArn;
165
166 Aws::Vector<Aws::String> m_systemIds;
167
168 Aws::String m_url;
169 bool m_certificateArnHasBeenSet = false;
170 bool m_encryptionContractConfigurationHasBeenSet = false;
171 bool m_resourceIdHasBeenSet = false;
172 bool m_roleArnHasBeenSet = false;
173 bool m_systemIdsHasBeenSet = false;
174 bool m_urlHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace MediaPackage
179} // namespace Aws
SpekeKeyProvider & WithUrl(UrlT &&value)
const Aws::Vector< Aws::String > & GetSystemIds() const
SpekeKeyProvider & WithResourceId(ResourceIdT &&value)
AWS_MEDIAPACKAGE_API Aws::Utils::Json::JsonValue Jsonize() const
SpekeKeyProvider & AddSystemIds(SystemIdsT &&value)
SpekeKeyProvider & WithCertificateArn(CertificateArnT &&value)
AWS_MEDIAPACKAGE_API SpekeKeyProvider()=default
SpekeKeyProvider & WithEncryptionContractConfiguration(EncryptionContractConfigurationT &&value)
void SetCertificateArn(CertificateArnT &&value)
const EncryptionContractConfiguration & GetEncryptionContractConfiguration() const
const Aws::String & GetResourceId() const
void SetEncryptionContractConfiguration(EncryptionContractConfigurationT &&value)
SpekeKeyProvider & WithRoleArn(RoleArnT &&value)
AWS_MEDIAPACKAGE_API SpekeKeyProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_MEDIAPACKAGE_API SpekeKeyProvider(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCertificateArn() const
SpekeKeyProvider & WithSystemIds(SystemIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue