AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SpekeKeyProvider.h
1
6#pragma once
7#include <aws/mediapackagev2/Mediapackagev2_EXPORTS.h>
8#include <aws/mediapackagev2/model/EncryptionContractConfiguration.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/mediapackagev2/model/DrmSystem.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace mediapackagev2
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_MEDIAPACKAGEV2_API SpekeKeyProvider();
38 AWS_MEDIAPACKAGEV2_API SpekeKeyProvider(Aws::Utils::Json::JsonView jsonValue);
39 AWS_MEDIAPACKAGEV2_API SpekeKeyProvider& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
51 inline const EncryptionContractConfiguration& GetEncryptionContractConfiguration() const{ return m_encryptionContractConfiguration; }
52 inline bool EncryptionContractConfigurationHasBeenSet() const { return m_encryptionContractConfigurationHasBeenSet; }
53 inline void SetEncryptionContractConfiguration(const EncryptionContractConfiguration& value) { m_encryptionContractConfigurationHasBeenSet = true; m_encryptionContractConfiguration = value; }
54 inline void SetEncryptionContractConfiguration(EncryptionContractConfiguration&& value) { m_encryptionContractConfigurationHasBeenSet = true; m_encryptionContractConfiguration = std::move(value); }
58
60
68 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
69 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
70 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
71 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
72 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
73 inline SpekeKeyProvider& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
74 inline SpekeKeyProvider& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
75 inline SpekeKeyProvider& WithResourceId(const char* value) { SetResourceId(value); return *this;}
77
79
83 inline const Aws::Vector<DrmSystem>& GetDrmSystems() const{ return m_drmSystems; }
84 inline bool DrmSystemsHasBeenSet() const { return m_drmSystemsHasBeenSet; }
85 inline void SetDrmSystems(const Aws::Vector<DrmSystem>& value) { m_drmSystemsHasBeenSet = true; m_drmSystems = value; }
86 inline void SetDrmSystems(Aws::Vector<DrmSystem>&& value) { m_drmSystemsHasBeenSet = true; m_drmSystems = std::move(value); }
87 inline SpekeKeyProvider& WithDrmSystems(const Aws::Vector<DrmSystem>& value) { SetDrmSystems(value); return *this;}
88 inline SpekeKeyProvider& WithDrmSystems(Aws::Vector<DrmSystem>&& value) { SetDrmSystems(std::move(value)); return *this;}
89 inline SpekeKeyProvider& AddDrmSystems(const DrmSystem& value) { m_drmSystemsHasBeenSet = true; m_drmSystems.push_back(value); return *this; }
90 inline SpekeKeyProvider& AddDrmSystems(DrmSystem&& value) { m_drmSystemsHasBeenSet = true; m_drmSystems.push_back(std::move(value)); return *this; }
92
94
103 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
104 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
105 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
106 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
107 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
108 inline SpekeKeyProvider& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
109 inline SpekeKeyProvider& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
110 inline SpekeKeyProvider& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
112
114
121 inline const Aws::String& GetUrl() const{ return m_url; }
122 inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; }
123 inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; }
124 inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); }
125 inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); }
126 inline SpekeKeyProvider& WithUrl(const Aws::String& value) { SetUrl(value); return *this;}
127 inline SpekeKeyProvider& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;}
128 inline SpekeKeyProvider& WithUrl(const char* value) { SetUrl(value); return *this;}
130 private:
131
132 EncryptionContractConfiguration m_encryptionContractConfiguration;
133 bool m_encryptionContractConfigurationHasBeenSet = false;
134
135 Aws::String m_resourceId;
136 bool m_resourceIdHasBeenSet = false;
137
138 Aws::Vector<DrmSystem> m_drmSystems;
139 bool m_drmSystemsHasBeenSet = false;
140
141 Aws::String m_roleArn;
142 bool m_roleArnHasBeenSet = false;
143
144 Aws::String m_url;
145 bool m_urlHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace mediapackagev2
150} // namespace Aws
SpekeKeyProvider & WithResourceId(const char *value)
SpekeKeyProvider & WithDrmSystems(const Aws::Vector< DrmSystem > &value)
SpekeKeyProvider & AddDrmSystems(DrmSystem &&value)
SpekeKeyProvider & WithResourceId(Aws::String &&value)
const Aws::Vector< DrmSystem > & GetDrmSystems() const
AWS_MEDIAPACKAGEV2_API SpekeKeyProvider(Aws::Utils::Json::JsonView jsonValue)
SpekeKeyProvider & WithEncryptionContractConfiguration(EncryptionContractConfiguration &&value)
SpekeKeyProvider & WithRoleArn(const Aws::String &value)
void SetEncryptionContractConfiguration(const EncryptionContractConfiguration &value)
SpekeKeyProvider & AddDrmSystems(const DrmSystem &value)
SpekeKeyProvider & WithDrmSystems(Aws::Vector< DrmSystem > &&value)
void SetDrmSystems(const Aws::Vector< DrmSystem > &value)
SpekeKeyProvider & WithRoleArn(Aws::String &&value)
void SetResourceId(const Aws::String &value)
SpekeKeyProvider & WithUrl(Aws::String &&value)
void SetRoleArn(const Aws::String &value)
AWS_MEDIAPACKAGEV2_API SpekeKeyProvider & operator=(Aws::Utils::Json::JsonView jsonValue)
SpekeKeyProvider & WithResourceId(const Aws::String &value)
SpekeKeyProvider & WithUrl(const char *value)
AWS_MEDIAPACKAGEV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetEncryptionContractConfiguration(EncryptionContractConfiguration &&value)
void SetDrmSystems(Aws::Vector< DrmSystem > &&value)
SpekeKeyProvider & WithUrl(const Aws::String &value)
const EncryptionContractConfiguration & GetEncryptionContractConfiguration() const
SpekeKeyProvider & WithRoleArn(const char *value)
SpekeKeyProvider & WithEncryptionContractConfiguration(const EncryptionContractConfiguration &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