AWS SDK for C++  1.9.66
AWS SDK for C++
AssociateEnclaveCertificateIamRoleRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "AssociateEnclaveCertificateIamRole"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
42  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
43 
47  inline bool CertificateArnHasBeenSet() const { return m_certificateArnHasBeenSet; }
48 
52  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
53 
57  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = std::move(value); }
58 
62  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
63 
67  inline AssociateEnclaveCertificateIamRoleRequest& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
68 
72  inline AssociateEnclaveCertificateIamRoleRequest& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;}
73 
77  inline AssociateEnclaveCertificateIamRoleRequest& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
78 
79 
84  inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
85 
90  inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
91 
96  inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
97 
102  inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
103 
108  inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
109 
114  inline AssociateEnclaveCertificateIamRoleRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
115 
120  inline AssociateEnclaveCertificateIamRoleRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
121 
126  inline AssociateEnclaveCertificateIamRoleRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
127 
128 
135  inline bool GetDryRun() const{ return m_dryRun; }
136 
143  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
144 
151  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
152 
159  inline AssociateEnclaveCertificateIamRoleRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
160 
161  private:
162 
163  Aws::String m_certificateArn;
164  bool m_certificateArnHasBeenSet;
165 
166  Aws::String m_roleArn;
167  bool m_roleArnHasBeenSet;
168 
169  bool m_dryRun;
170  bool m_dryRunHasBeenSet;
171  };
172 
173 } // namespace Model
174 } // namespace EC2
175 } // namespace Aws
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::GetDryRun
bool GetDryRun() const
Definition: AssociateEnclaveCertificateIamRoleRequest.h:135
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::AssociateEnclaveCertificateIamRoleRequest
AssociateEnclaveCertificateIamRoleRequest()
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateEnclaveCertificateIamRoleRequest.h:30
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::SetRoleArn
void SetRoleArn(Aws::String &&value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:102
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::WithDryRun
AssociateEnclaveCertificateIamRoleRequest & WithDryRun(bool value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:159
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest
Definition: AssociateEnclaveCertificateIamRoleRequest.h:22
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::WithCertificateArn
AssociateEnclaveCertificateIamRoleRequest & WithCertificateArn(const char *value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:77
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::SetRoleArn
void SetRoleArn(const Aws::String &value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:96
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::SetRoleArn
void SetRoleArn(const char *value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:108
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::SetCertificateArn
void SetCertificateArn(Aws::String &&value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:57
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::WithRoleArn
AssociateEnclaveCertificateIamRoleRequest & WithRoleArn(const Aws::String &value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:114
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::SetCertificateArn
void SetCertificateArn(const Aws::String &value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:52
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::GetCertificateArn
const Aws::String & GetCertificateArn() const
Definition: AssociateEnclaveCertificateIamRoleRequest.h:42
EC2Request.h
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::SetCertificateArn
void SetCertificateArn(const char *value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:62
AWSString.h
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::GetRoleArn
const Aws::String & GetRoleArn() const
Definition: AssociateEnclaveCertificateIamRoleRequest.h:84
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::WithRoleArn
AssociateEnclaveCertificateIamRoleRequest & WithRoleArn(Aws::String &&value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:120
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::SetDryRun
void SetDryRun(bool value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:151
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::WithCertificateArn
AssociateEnclaveCertificateIamRoleRequest & WithCertificateArn(const Aws::String &value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:67
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::CertificateArnHasBeenSet
bool CertificateArnHasBeenSet() const
Definition: AssociateEnclaveCertificateIamRoleRequest.h:47
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::RoleArnHasBeenSet
bool RoleArnHasBeenSet() const
Definition: AssociateEnclaveCertificateIamRoleRequest.h:90
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::WithCertificateArn
AssociateEnclaveCertificateIamRoleRequest & WithCertificateArn(Aws::String &&value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:72
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::WithRoleArn
AssociateEnclaveCertificateIamRoleRequest & WithRoleArn(const char *value)
Definition: AssociateEnclaveCertificateIamRoleRequest.h:126
EC2_EXPORTS.h
Aws::EC2::Model::AssociateEnclaveCertificateIamRoleRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: AssociateEnclaveCertificateIamRoleRequest.h:143