AWS SDK for C++  1.9.66
AWS SDK for C++
AssociateIamInstanceProfileRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace EC2
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "AssociateIamInstanceProfile"; }
32 
33  Aws::String SerializePayload() const override;
34 
35  protected:
36  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37 
38  public:
39 
43  inline const IamInstanceProfileSpecification& GetIamInstanceProfile() const{ return m_iamInstanceProfile; }
44 
48  inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
49 
53  inline void SetIamInstanceProfile(const IamInstanceProfileSpecification& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; }
54 
58  inline void SetIamInstanceProfile(IamInstanceProfileSpecification&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); }
59 
63  inline AssociateIamInstanceProfileRequest& WithIamInstanceProfile(const IamInstanceProfileSpecification& value) { SetIamInstanceProfile(value); return *this;}
64 
68  inline AssociateIamInstanceProfileRequest& WithIamInstanceProfile(IamInstanceProfileSpecification&& value) { SetIamInstanceProfile(std::move(value)); return *this;}
69 
70 
74  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
75 
79  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
80 
84  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
85 
89  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
90 
94  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
95 
99  inline AssociateIamInstanceProfileRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
100 
104  inline AssociateIamInstanceProfileRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
105 
109  inline AssociateIamInstanceProfileRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
110 
111  private:
112 
113  IamInstanceProfileSpecification m_iamInstanceProfile;
114  bool m_iamInstanceProfileHasBeenSet;
115 
116  Aws::String m_instanceId;
117  bool m_instanceIdHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace EC2
122 } // namespace Aws
Aws::EC2::Model::AssociateIamInstanceProfileRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateIamInstanceProfileRequest.h:31
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::AssociateIamInstanceProfileRequest::WithIamInstanceProfile
AssociateIamInstanceProfileRequest & WithIamInstanceProfile(IamInstanceProfileSpecification &&value)
Definition: AssociateIamInstanceProfileRequest.h:68
Aws::EC2::Model::AssociateIamInstanceProfileRequest::WithInstanceId
AssociateIamInstanceProfileRequest & WithInstanceId(const char *value)
Definition: AssociateIamInstanceProfileRequest.h:109
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::AssociateIamInstanceProfileRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::AssociateIamInstanceProfileRequest::SetIamInstanceProfile
void SetIamInstanceProfile(IamInstanceProfileSpecification &&value)
Definition: AssociateIamInstanceProfileRequest.h:58
Aws::EC2::Model::AssociateIamInstanceProfileRequest
Definition: AssociateIamInstanceProfileRequest.h:23
Aws::EC2::Model::AssociateIamInstanceProfileRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: AssociateIamInstanceProfileRequest.h:74
Aws::EC2::Model::AssociateIamInstanceProfileRequest::WithInstanceId
AssociateIamInstanceProfileRequest & WithInstanceId(const Aws::String &value)
Definition: AssociateIamInstanceProfileRequest.h:99
Aws::EC2::Model::AssociateIamInstanceProfileRequest::GetIamInstanceProfile
const IamInstanceProfileSpecification & GetIamInstanceProfile() const
Definition: AssociateIamInstanceProfileRequest.h:43
Aws::EC2::Model::AssociateIamInstanceProfileRequest::AssociateIamInstanceProfileRequest
AssociateIamInstanceProfileRequest()
Aws::EC2::Model::AssociateIamInstanceProfileRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: AssociateIamInstanceProfileRequest.h:84
Aws::EC2::Model::AssociateIamInstanceProfileRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: AssociateIamInstanceProfileRequest.h:79
IamInstanceProfileSpecification.h
EC2Request.h
AWSString.h
Aws::EC2::Model::AssociateIamInstanceProfileRequest::WithIamInstanceProfile
AssociateIamInstanceProfileRequest & WithIamInstanceProfile(const IamInstanceProfileSpecification &value)
Definition: AssociateIamInstanceProfileRequest.h:63
Aws::EC2::Model::AssociateIamInstanceProfileRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: AssociateIamInstanceProfileRequest.h:94
Aws::EC2::Model::AssociateIamInstanceProfileRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::AssociateIamInstanceProfileRequest::IamInstanceProfileHasBeenSet
bool IamInstanceProfileHasBeenSet() const
Definition: AssociateIamInstanceProfileRequest.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::AssociateIamInstanceProfileRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: AssociateIamInstanceProfileRequest.h:89
Aws::EC2::Model::IamInstanceProfileSpecification
Definition: IamInstanceProfileSpecification.h:32
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::AssociateIamInstanceProfileRequest::WithInstanceId
AssociateIamInstanceProfileRequest & WithInstanceId(Aws::String &&value)
Definition: AssociateIamInstanceProfileRequest.h:104
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::AssociateIamInstanceProfileRequest::SetIamInstanceProfile
void SetIamInstanceProfile(const IamInstanceProfileSpecification &value)
Definition: AssociateIamInstanceProfileRequest.h:53
EC2_EXPORTS.h