AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
EncryptionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/forecast/ForecastService_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ForecastService {
20namespace Model {
21
31 public:
32 AWS_FORECASTSERVICE_API EncryptionConfig() = default;
33 AWS_FORECASTSERVICE_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue);
34 AWS_FORECASTSERVICE_API EncryptionConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
45 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
46 template <typename RoleArnT = Aws::String>
47 void SetRoleArn(RoleArnT&& value) {
48 m_roleArnHasBeenSet = true;
49 m_roleArn = std::forward<RoleArnT>(value);
50 }
51 template <typename RoleArnT = Aws::String>
52 EncryptionConfig& WithRoleArn(RoleArnT&& value) {
53 SetRoleArn(std::forward<RoleArnT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetKMSKeyArn() const { return m_kMSKeyArn; }
63 inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
64 template <typename KMSKeyArnT = Aws::String>
65 void SetKMSKeyArn(KMSKeyArnT&& value) {
66 m_kMSKeyArnHasBeenSet = true;
67 m_kMSKeyArn = std::forward<KMSKeyArnT>(value);
68 }
69 template <typename KMSKeyArnT = Aws::String>
70 EncryptionConfig& WithKMSKeyArn(KMSKeyArnT&& value) {
71 SetKMSKeyArn(std::forward<KMSKeyArnT>(value));
72 return *this;
73 }
75 private:
76 Aws::String m_roleArn;
77
78 Aws::String m_kMSKeyArn;
79 bool m_roleArnHasBeenSet = false;
80 bool m_kMSKeyArnHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace ForecastService
85} // namespace Aws
EncryptionConfig & WithRoleArn(RoleArnT &&value)
AWS_FORECASTSERVICE_API EncryptionConfig()=default
EncryptionConfig & WithKMSKeyArn(KMSKeyArnT &&value)
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FORECASTSERVICE_API EncryptionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API EncryptionConfig(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue