AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
CustomSecretConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/datasync/DataSync_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace DataSync {
20namespace Model {
21
35 public:
36 AWS_DATASYNC_API CustomSecretConfig() = default;
37 AWS_DATASYNC_API CustomSecretConfig(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
38 AWS_DATASYNC_API CustomSecretConfig& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
39 AWS_DATASYNC_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
AWS_DATASYNC_API CustomSecretConfig & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetSecretAccessRoleArn(SecretAccessRoleArnT &&value)
CustomSecretConfig & WithSecretArn(SecretArnT &&value)
AWS_DATASYNC_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
CustomSecretConfig & WithSecretAccessRoleArn(SecretAccessRoleArnT &&value)
AWS_DATASYNC_API CustomSecretConfig(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetSecretAccessRoleArn() const
AWS_DATASYNC_API CustomSecretConfig()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String