AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
AssociatedRole.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/ec2/EC2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace EC2 {
20namespace Model {
21
28 public:
29 AWS_EC2_API AssociatedRole() = default;
30 AWS_EC2_API AssociatedRole(const Aws::Utils::Xml::XmlNode& xmlNode);
32
33 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
35
37
40 inline const Aws::String& GetAssociatedRoleArn() const { return m_associatedRoleArn; }
41 inline bool AssociatedRoleArnHasBeenSet() const { return m_associatedRoleArnHasBeenSet; }
42 template <typename AssociatedRoleArnT = Aws::String>
43 void SetAssociatedRoleArn(AssociatedRoleArnT&& value) {
44 m_associatedRoleArnHasBeenSet = true;
45 m_associatedRoleArn = std::forward<AssociatedRoleArnT>(value);
46 }
47 template <typename AssociatedRoleArnT = Aws::String>
48 AssociatedRole& WithAssociatedRoleArn(AssociatedRoleArnT&& value) {
49 SetAssociatedRoleArn(std::forward<AssociatedRoleArnT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCertificateS3BucketName() const { return m_certificateS3BucketName; }
59 inline bool CertificateS3BucketNameHasBeenSet() const { return m_certificateS3BucketNameHasBeenSet; }
60 template <typename CertificateS3BucketNameT = Aws::String>
61 void SetCertificateS3BucketName(CertificateS3BucketNameT&& value) {
62 m_certificateS3BucketNameHasBeenSet = true;
63 m_certificateS3BucketName = std::forward<CertificateS3BucketNameT>(value);
64 }
65 template <typename CertificateS3BucketNameT = Aws::String>
66 AssociatedRole& WithCertificateS3BucketName(CertificateS3BucketNameT&& value) {
67 SetCertificateS3BucketName(std::forward<CertificateS3BucketNameT>(value));
68 return *this;
69 }
71
73
78 inline const Aws::String& GetCertificateS3ObjectKey() const { return m_certificateS3ObjectKey; }
79 inline bool CertificateS3ObjectKeyHasBeenSet() const { return m_certificateS3ObjectKeyHasBeenSet; }
80 template <typename CertificateS3ObjectKeyT = Aws::String>
81 void SetCertificateS3ObjectKey(CertificateS3ObjectKeyT&& value) {
82 m_certificateS3ObjectKeyHasBeenSet = true;
83 m_certificateS3ObjectKey = std::forward<CertificateS3ObjectKeyT>(value);
84 }
85 template <typename CertificateS3ObjectKeyT = Aws::String>
86 AssociatedRole& WithCertificateS3ObjectKey(CertificateS3ObjectKeyT&& value) {
87 SetCertificateS3ObjectKey(std::forward<CertificateS3ObjectKeyT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetEncryptionKmsKeyId() const { return m_encryptionKmsKeyId; }
97 inline bool EncryptionKmsKeyIdHasBeenSet() const { return m_encryptionKmsKeyIdHasBeenSet; }
98 template <typename EncryptionKmsKeyIdT = Aws::String>
99 void SetEncryptionKmsKeyId(EncryptionKmsKeyIdT&& value) {
100 m_encryptionKmsKeyIdHasBeenSet = true;
101 m_encryptionKmsKeyId = std::forward<EncryptionKmsKeyIdT>(value);
102 }
103 template <typename EncryptionKmsKeyIdT = Aws::String>
104 AssociatedRole& WithEncryptionKmsKeyId(EncryptionKmsKeyIdT&& value) {
105 SetEncryptionKmsKeyId(std::forward<EncryptionKmsKeyIdT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_associatedRoleArn;
111
112 Aws::String m_certificateS3BucketName;
113
114 Aws::String m_certificateS3ObjectKey;
115
116 Aws::String m_encryptionKmsKeyId;
117 bool m_associatedRoleArnHasBeenSet = false;
118 bool m_certificateS3BucketNameHasBeenSet = false;
119 bool m_certificateS3ObjectKeyHasBeenSet = false;
120 bool m_encryptionKmsKeyIdHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace EC2
125} // namespace Aws
bool CertificateS3ObjectKeyHasBeenSet() const
const Aws::String & GetAssociatedRoleArn() const
const Aws::String & GetEncryptionKmsKeyId() const
AWS_EC2_API AssociatedRole(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetCertificateS3ObjectKey() const
AssociatedRole & WithAssociatedRoleArn(AssociatedRoleArnT &&value)
AWS_EC2_API AssociatedRole()=default
void SetAssociatedRoleArn(AssociatedRoleArnT &&value)
void SetCertificateS3BucketName(CertificateS3BucketNameT &&value)
AssociatedRole & WithCertificateS3BucketName(CertificateS3BucketNameT &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetCertificateS3ObjectKey(CertificateS3ObjectKeyT &&value)
void SetEncryptionKmsKeyId(EncryptionKmsKeyIdT &&value)
AWS_EC2_API AssociatedRole & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool CertificateS3BucketNameHasBeenSet() const
AssociatedRole & WithEncryptionKmsKeyId(EncryptionKmsKeyIdT &&value)
const Aws::String & GetCertificateS3BucketName() const
AssociatedRole & WithCertificateS3ObjectKey(CertificateS3ObjectKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream