AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAssociatedRoleArn(const Aws::String& value) { m_associatedRoleArnHasBeenSet = true; m_associatedRoleArn = value; }
49 inline void SetAssociatedRoleArn(Aws::String&& value) { m_associatedRoleArnHasBeenSet = true; m_associatedRoleArn = std::move(value); }
50 inline void SetAssociatedRoleArn(const char* value) { m_associatedRoleArnHasBeenSet = true; m_associatedRoleArn.assign(value); }
51 inline AssociatedRole& WithAssociatedRoleArn(const Aws::String& value) { SetAssociatedRoleArn(value); return *this;}
52 inline AssociatedRole& WithAssociatedRoleArn(Aws::String&& value) { SetAssociatedRoleArn(std::move(value)); return *this;}
53 inline AssociatedRole& WithAssociatedRoleArn(const char* value) { SetAssociatedRoleArn(value); return *this;}
55
57
60 inline const Aws::String& GetCertificateS3BucketName() const{ return m_certificateS3BucketName; }
61 inline bool CertificateS3BucketNameHasBeenSet() const { return m_certificateS3BucketNameHasBeenSet; }
62 inline void SetCertificateS3BucketName(const Aws::String& value) { m_certificateS3BucketNameHasBeenSet = true; m_certificateS3BucketName = value; }
63 inline void SetCertificateS3BucketName(Aws::String&& value) { m_certificateS3BucketNameHasBeenSet = true; m_certificateS3BucketName = std::move(value); }
64 inline void SetCertificateS3BucketName(const char* value) { m_certificateS3BucketNameHasBeenSet = true; m_certificateS3BucketName.assign(value); }
66 inline AssociatedRole& WithCertificateS3BucketName(Aws::String&& value) { SetCertificateS3BucketName(std::move(value)); return *this;}
67 inline AssociatedRole& WithCertificateS3BucketName(const char* value) { SetCertificateS3BucketName(value); return *this;}
69
71
76 inline const Aws::String& GetCertificateS3ObjectKey() const{ return m_certificateS3ObjectKey; }
77 inline bool CertificateS3ObjectKeyHasBeenSet() const { return m_certificateS3ObjectKeyHasBeenSet; }
78 inline void SetCertificateS3ObjectKey(const Aws::String& value) { m_certificateS3ObjectKeyHasBeenSet = true; m_certificateS3ObjectKey = value; }
79 inline void SetCertificateS3ObjectKey(Aws::String&& value) { m_certificateS3ObjectKeyHasBeenSet = true; m_certificateS3ObjectKey = std::move(value); }
80 inline void SetCertificateS3ObjectKey(const char* value) { m_certificateS3ObjectKeyHasBeenSet = true; m_certificateS3ObjectKey.assign(value); }
82 inline AssociatedRole& WithCertificateS3ObjectKey(Aws::String&& value) { SetCertificateS3ObjectKey(std::move(value)); return *this;}
83 inline AssociatedRole& WithCertificateS3ObjectKey(const char* value) { SetCertificateS3ObjectKey(value); return *this;}
85
87
90 inline const Aws::String& GetEncryptionKmsKeyId() const{ return m_encryptionKmsKeyId; }
91 inline bool EncryptionKmsKeyIdHasBeenSet() const { return m_encryptionKmsKeyIdHasBeenSet; }
92 inline void SetEncryptionKmsKeyId(const Aws::String& value) { m_encryptionKmsKeyIdHasBeenSet = true; m_encryptionKmsKeyId = value; }
93 inline void SetEncryptionKmsKeyId(Aws::String&& value) { m_encryptionKmsKeyIdHasBeenSet = true; m_encryptionKmsKeyId = std::move(value); }
94 inline void SetEncryptionKmsKeyId(const char* value) { m_encryptionKmsKeyIdHasBeenSet = true; m_encryptionKmsKeyId.assign(value); }
95 inline AssociatedRole& WithEncryptionKmsKeyId(const Aws::String& value) { SetEncryptionKmsKeyId(value); return *this;}
96 inline AssociatedRole& WithEncryptionKmsKeyId(Aws::String&& value) { SetEncryptionKmsKeyId(std::move(value)); return *this;}
97 inline AssociatedRole& WithEncryptionKmsKeyId(const char* value) { SetEncryptionKmsKeyId(value); return *this;}
99 private:
100
101 Aws::String m_associatedRoleArn;
102 bool m_associatedRoleArnHasBeenSet = false;
103
104 Aws::String m_certificateS3BucketName;
105 bool m_certificateS3BucketNameHasBeenSet = false;
106
107 Aws::String m_certificateS3ObjectKey;
108 bool m_certificateS3ObjectKeyHasBeenSet = false;
109
110 Aws::String m_encryptionKmsKeyId;
111 bool m_encryptionKmsKeyIdHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
AssociatedRole & WithCertificateS3BucketName(const char *value)
void SetEncryptionKmsKeyId(const Aws::String &value)
bool CertificateS3ObjectKeyHasBeenSet() const
void SetCertificateS3BucketName(const Aws::String &value)
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
void SetAssociatedRoleArn(const Aws::String &value)
AssociatedRole & WithCertificateS3BucketName(Aws::String &&value)
AssociatedRole & WithEncryptionKmsKeyId(const char *value)
void SetCertificateS3BucketName(const char *value)
AssociatedRole & WithCertificateS3ObjectKey(Aws::String &&value)
void SetAssociatedRoleArn(const char *value)
AssociatedRole & WithCertificateS3BucketName(const Aws::String &value)
void SetCertificateS3ObjectKey(const Aws::String &value)
void SetCertificateS3ObjectKey(const char *value)
void SetEncryptionKmsKeyId(const char *value)
AssociatedRole & WithEncryptionKmsKeyId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AssociatedRole & WithCertificateS3ObjectKey(const char *value)
AssociatedRole & WithAssociatedRoleArn(const char *value)
AssociatedRole & WithCertificateS3ObjectKey(const Aws::String &value)
AssociatedRole & WithAssociatedRoleArn(Aws::String &&value)
void SetAssociatedRoleArn(Aws::String &&value)
AssociatedRole & WithAssociatedRoleArn(const Aws::String &value)
void SetCertificateS3BucketName(Aws::String &&value)
AssociatedRole & WithEncryptionKmsKeyId(Aws::String &&value)
AWS_EC2_API AssociatedRole & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetCertificateS3ObjectKey(Aws::String &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool CertificateS3BucketNameHasBeenSet() const
const Aws::String & GetCertificateS3BucketName() const
void SetEncryptionKmsKeyId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream