AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
ClusterIamRole.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/redshift/Redshift_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace Redshift {
20namespace Model {
21
30 public:
31 AWS_REDSHIFT_API ClusterIamRole() = default;
32 AWS_REDSHIFT_API ClusterIamRole(const Aws::Utils::Xml::XmlNode& xmlNode);
33 AWS_REDSHIFT_API ClusterIamRole& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
34
35 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
36 AWS_REDSHIFT_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
43 inline const Aws::String& GetIamRoleArn() const { return m_iamRoleArn; }
44 inline bool IamRoleArnHasBeenSet() const { return m_iamRoleArnHasBeenSet; }
45 template <typename IamRoleArnT = Aws::String>
46 void SetIamRoleArn(IamRoleArnT&& value) {
47 m_iamRoleArnHasBeenSet = true;
48 m_iamRoleArn = std::forward<IamRoleArnT>(value);
49 }
50 template <typename IamRoleArnT = Aws::String>
51 ClusterIamRole& WithIamRoleArn(IamRoleArnT&& value) {
52 SetIamRoleArn(std::forward<IamRoleArnT>(value));
53 return *this;
54 }
56
58
67 inline const Aws::String& GetApplyStatus() const { return m_applyStatus; }
68 inline bool ApplyStatusHasBeenSet() const { return m_applyStatusHasBeenSet; }
69 template <typename ApplyStatusT = Aws::String>
70 void SetApplyStatus(ApplyStatusT&& value) {
71 m_applyStatusHasBeenSet = true;
72 m_applyStatus = std::forward<ApplyStatusT>(value);
73 }
74 template <typename ApplyStatusT = Aws::String>
75 ClusterIamRole& WithApplyStatus(ApplyStatusT&& value) {
76 SetApplyStatus(std::forward<ApplyStatusT>(value));
77 return *this;
78 }
80 private:
81 Aws::String m_iamRoleArn;
82
83 Aws::String m_applyStatus;
84 bool m_iamRoleArnHasBeenSet = false;
85 bool m_applyStatusHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace Redshift
90} // namespace Aws
AWS_REDSHIFT_API ClusterIamRole & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClusterIamRole & WithApplyStatus(ApplyStatusT &&value)
AWS_REDSHIFT_API ClusterIamRole(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetIamRoleArn() const
ClusterIamRole & WithIamRoleArn(IamRoleArnT &&value)
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetApplyStatus(ApplyStatusT &&value)
void SetIamRoleArn(IamRoleArnT &&value)
const Aws::String & GetApplyStatus() const
AWS_REDSHIFT_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_REDSHIFT_API ClusterIamRole()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream