AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CustomSecretConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/datasync/DataSync_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DataSync {
20namespace Model {
21
35 public:
36 AWS_DATASYNC_API CustomSecretConfig() = default;
39 AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetSecretArn() const { return m_secretArn; }
46 inline bool SecretArnHasBeenSet() const { return m_secretArnHasBeenSet; }
47 template <typename SecretArnT = Aws::String>
48 void SetSecretArn(SecretArnT&& value) {
49 m_secretArnHasBeenSet = true;
50 m_secretArn = std::forward<SecretArnT>(value);
51 }
52 template <typename SecretArnT = Aws::String>
53 CustomSecretConfig& WithSecretArn(SecretArnT&& value) {
54 SetSecretArn(std::forward<SecretArnT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetSecretAccessRoleArn() const { return m_secretAccessRoleArn; }
65 inline bool SecretAccessRoleArnHasBeenSet() const { return m_secretAccessRoleArnHasBeenSet; }
66 template <typename SecretAccessRoleArnT = Aws::String>
67 void SetSecretAccessRoleArn(SecretAccessRoleArnT&& value) {
68 m_secretAccessRoleArnHasBeenSet = true;
69 m_secretAccessRoleArn = std::forward<SecretAccessRoleArnT>(value);
70 }
71 template <typename SecretAccessRoleArnT = Aws::String>
72 CustomSecretConfig& WithSecretAccessRoleArn(SecretAccessRoleArnT&& value) {
73 SetSecretAccessRoleArn(std::forward<SecretAccessRoleArnT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_secretArn;
79
80 Aws::String m_secretAccessRoleArn;
81 bool m_secretArnHasBeenSet = false;
82 bool m_secretAccessRoleArnHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace DataSync
87} // namespace Aws
void SetSecretAccessRoleArn(SecretAccessRoleArnT &&value)
CustomSecretConfig & WithSecretArn(SecretArnT &&value)
CustomSecretConfig & WithSecretAccessRoleArn(SecretAccessRoleArnT &&value)
AWS_DATASYNC_API CustomSecretConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DATASYNC_API CustomSecretConfig(Aws::Utils::Json::JsonView jsonValue)
AWS_DATASYNC_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetSecretAccessRoleArn() const
AWS_DATASYNC_API CustomSecretConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue