AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
TargetResourceConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/rds/RDS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace RDS {
20namespace Model {
21
33 public:
34 AWS_RDS_API TargetResourceConfiguration() = default;
37
38 AWS_RDS_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_RDS_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
46 inline const Aws::String& GetSourceArn() const { return m_sourceArn; }
47 inline bool SourceArnHasBeenSet() const { return m_sourceArnHasBeenSet; }
48 template <typename SourceArnT = Aws::String>
49 void SetSourceArn(SourceArnT&& value) {
50 m_sourceArnHasBeenSet = true;
51 m_sourceArn = std::forward<SourceArnT>(value);
52 }
53 template <typename SourceArnT = Aws::String>
55 SetSourceArn(std::forward<SourceArnT>(value));
56 return *this;
57 }
59
61
75 inline const Aws::String& GetTargetKmsKeyId() const { return m_targetKmsKeyId; }
76 inline bool TargetKmsKeyIdHasBeenSet() const { return m_targetKmsKeyIdHasBeenSet; }
77 template <typename TargetKmsKeyIdT = Aws::String>
78 void SetTargetKmsKeyId(TargetKmsKeyIdT&& value) {
79 m_targetKmsKeyIdHasBeenSet = true;
80 m_targetKmsKeyId = std::forward<TargetKmsKeyIdT>(value);
81 }
82 template <typename TargetKmsKeyIdT = Aws::String>
84 SetTargetKmsKeyId(std::forward<TargetKmsKeyIdT>(value));
85 return *this;
86 }
88 private:
89 Aws::String m_sourceArn;
90
91 Aws::String m_targetKmsKeyId;
92 bool m_sourceArnHasBeenSet = false;
93 bool m_targetKmsKeyIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace RDS
98} // namespace Aws
AWS_RDS_API TargetResourceConfiguration()=default
TargetResourceConfiguration & WithTargetKmsKeyId(TargetKmsKeyIdT &&value)
AWS_RDS_API TargetResourceConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_RDS_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_RDS_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TargetResourceConfiguration & WithSourceArn(SourceArnT &&value)
AWS_RDS_API TargetResourceConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream