AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociatedRole.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace EC2
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_EC2_API AssociatedRole() = default;
35 AWS_EC2_API AssociatedRole(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
41
43
46 inline const Aws::String& GetAssociatedRoleArn() const { return m_associatedRoleArn; }
47 inline bool AssociatedRoleArnHasBeenSet() const { return m_associatedRoleArnHasBeenSet; }
48 template<typename AssociatedRoleArnT = Aws::String>
49 void SetAssociatedRoleArn(AssociatedRoleArnT&& value) { m_associatedRoleArnHasBeenSet = true; m_associatedRoleArn = std::forward<AssociatedRoleArnT>(value); }
50 template<typename AssociatedRoleArnT = Aws::String>
51 AssociatedRole& WithAssociatedRoleArn(AssociatedRoleArnT&& value) { SetAssociatedRoleArn(std::forward<AssociatedRoleArnT>(value)); return *this;}
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) { m_certificateS3BucketNameHasBeenSet = true; m_certificateS3BucketName = std::forward<CertificateS3BucketNameT>(value); }
62 template<typename CertificateS3BucketNameT = Aws::String>
63 AssociatedRole& WithCertificateS3BucketName(CertificateS3BucketNameT&& value) { SetCertificateS3BucketName(std::forward<CertificateS3BucketNameT>(value)); return *this;}
65
67
72 inline const Aws::String& GetCertificateS3ObjectKey() const { return m_certificateS3ObjectKey; }
73 inline bool CertificateS3ObjectKeyHasBeenSet() const { return m_certificateS3ObjectKeyHasBeenSet; }
74 template<typename CertificateS3ObjectKeyT = Aws::String>
75 void SetCertificateS3ObjectKey(CertificateS3ObjectKeyT&& value) { m_certificateS3ObjectKeyHasBeenSet = true; m_certificateS3ObjectKey = std::forward<CertificateS3ObjectKeyT>(value); }
76 template<typename CertificateS3ObjectKeyT = Aws::String>
77 AssociatedRole& WithCertificateS3ObjectKey(CertificateS3ObjectKeyT&& value) { SetCertificateS3ObjectKey(std::forward<CertificateS3ObjectKeyT>(value)); return *this;}
79
81
84 inline const Aws::String& GetEncryptionKmsKeyId() const { return m_encryptionKmsKeyId; }
85 inline bool EncryptionKmsKeyIdHasBeenSet() const { return m_encryptionKmsKeyIdHasBeenSet; }
86 template<typename EncryptionKmsKeyIdT = Aws::String>
87 void SetEncryptionKmsKeyId(EncryptionKmsKeyIdT&& value) { m_encryptionKmsKeyIdHasBeenSet = true; m_encryptionKmsKeyId = std::forward<EncryptionKmsKeyIdT>(value); }
88 template<typename EncryptionKmsKeyIdT = Aws::String>
89 AssociatedRole& WithEncryptionKmsKeyId(EncryptionKmsKeyIdT&& value) { SetEncryptionKmsKeyId(std::forward<EncryptionKmsKeyIdT>(value)); return *this;}
91 private:
92
93 Aws::String m_associatedRoleArn;
94 bool m_associatedRoleArnHasBeenSet = false;
95
96 Aws::String m_certificateS3BucketName;
97 bool m_certificateS3BucketNameHasBeenSet = false;
98
99 Aws::String m_certificateS3ObjectKey;
100 bool m_certificateS3ObjectKeyHasBeenSet = false;
101
102 Aws::String m_encryptionKmsKeyId;
103 bool m_encryptionKmsKeyIdHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace EC2
108} // 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