AWS SDK for C++  1.9.159
AWS SDK for C++
EncryptionConfig.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace ForecastService
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
49  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
50 
57  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
58 
65  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
66 
73  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
74 
81  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
82 
89  inline EncryptionConfig& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
90 
97  inline EncryptionConfig& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
98 
105  inline EncryptionConfig& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
106 
107 
111  inline const Aws::String& GetKMSKeyArn() const{ return m_kMSKeyArn; }
112 
116  inline bool KMSKeyArnHasBeenSet() const { return m_kMSKeyArnHasBeenSet; }
117 
121  inline void SetKMSKeyArn(const Aws::String& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = value; }
122 
126  inline void SetKMSKeyArn(Aws::String&& value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn = std::move(value); }
127 
131  inline void SetKMSKeyArn(const char* value) { m_kMSKeyArnHasBeenSet = true; m_kMSKeyArn.assign(value); }
132 
136  inline EncryptionConfig& WithKMSKeyArn(const Aws::String& value) { SetKMSKeyArn(value); return *this;}
137 
141  inline EncryptionConfig& WithKMSKeyArn(Aws::String&& value) { SetKMSKeyArn(std::move(value)); return *this;}
142 
146  inline EncryptionConfig& WithKMSKeyArn(const char* value) { SetKMSKeyArn(value); return *this;}
147 
148  private:
149 
150  Aws::String m_roleArn;
151  bool m_roleArnHasBeenSet;
152 
153  Aws::String m_kMSKeyArn;
154  bool m_kMSKeyArnHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace ForecastService
159 } // namespace Aws
Aws::ForecastService::Model::EncryptionConfig::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: EncryptionConfig.h:73
Aws::ForecastService::Model::EncryptionConfig::SetKMSKeyArn
void SetKMSKeyArn(const char *value)
Definition: EncryptionConfig.h:131
Aws::ForecastService::Model::EncryptionConfig::EncryptionConfig
EncryptionConfig(Aws::Utils::Json::JsonView jsonValue)
Aws::ForecastService::Model::EncryptionConfig::KMSKeyArnHasBeenSet
bool KMSKeyArnHasBeenSet() const
Definition: EncryptionConfig.h:116
ForecastService_EXPORTS.h
Aws::ForecastService::Model::EncryptionConfig::EncryptionConfig
EncryptionConfig()
Aws::ForecastService::Model::EncryptionConfig::SetKMSKeyArn
void SetKMSKeyArn(Aws::String &&value)
Definition: EncryptionConfig.h:126
Aws::ForecastService::Model::EncryptionConfig::SetRoleArn
void SetRoleArn(const char *value)
Definition: EncryptionConfig.h:81
Aws::ForecastService::Model::EncryptionConfig::WithRoleArn
EncryptionConfig & WithRoleArn(Aws::String &&value)
Definition: EncryptionConfig.h:97
Aws::ForecastService::Model::EncryptionConfig::operator=
EncryptionConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ForecastService::Model::EncryptionConfig::SetKMSKeyArn
void SetKMSKeyArn(const Aws::String &value)
Definition: EncryptionConfig.h:121
Aws::ForecastService::Model::EncryptionConfig::WithRoleArn
EncryptionConfig & WithRoleArn(const Aws::String &value)
Definition: EncryptionConfig.h:89
Aws::ForecastService::Model::EncryptionConfig::WithKMSKeyArn
EncryptionConfig & WithKMSKeyArn(const Aws::String &value)
Definition: EncryptionConfig.h:136
Aws::ForecastService::Model::EncryptionConfig::WithRoleArn
EncryptionConfig & WithRoleArn(const char *value)
Definition: EncryptionConfig.h:105
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ForecastService::Model::EncryptionConfig
Definition: EncryptionConfig.h:35
Aws::ForecastService::Model::EncryptionConfig::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: EncryptionConfig.h:49
Aws::ForecastService::Model::EncryptionConfig::WithKMSKeyArn
EncryptionConfig & WithKMSKeyArn(Aws::String &&value)
Definition: EncryptionConfig.h:141
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::ForecastService::Model::EncryptionConfig::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: EncryptionConfig.h:57
Aws::ForecastService::Model::EncryptionConfig::GetKMSKeyArn
const Aws::String & GetKMSKeyArn() const
Definition: EncryptionConfig.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ForecastService::Model::EncryptionConfig::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ForecastService::Model::EncryptionConfig::WithKMSKeyArn
EncryptionConfig & WithKMSKeyArn(const char *value)
Definition: EncryptionConfig.h:146
AWS_FORECASTSERVICE_API
#define AWS_FORECASTSERVICE_API
Definition: ForecastService_EXPORTS.h:28
Aws::ForecastService::Model::EncryptionConfig::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: EncryptionConfig.h:65