AWS SDK for C++  1.9.74
AWS SDK for C++
ReplaceIamInstanceProfileAssociationRequest.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 "ReplaceIamInstanceProfileAssociation"; }
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 ReplaceIamInstanceProfileAssociationRequest& WithIamInstanceProfile(const IamInstanceProfileSpecification& value) { SetIamInstanceProfile(value); return *this;}
64 
68  inline ReplaceIamInstanceProfileAssociationRequest& WithIamInstanceProfile(IamInstanceProfileSpecification&& value) { SetIamInstanceProfile(std::move(value)); return *this;}
69 
70 
74  inline const Aws::String& GetAssociationId() const{ return m_associationId; }
75 
79  inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
80 
84  inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
85 
89  inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
90 
94  inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
95 
99  inline ReplaceIamInstanceProfileAssociationRequest& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;}
100 
104  inline ReplaceIamInstanceProfileAssociationRequest& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;}
105 
109  inline ReplaceIamInstanceProfileAssociationRequest& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
110 
111  private:
112 
113  IamInstanceProfileSpecification m_iamInstanceProfile;
114  bool m_iamInstanceProfileHasBeenSet;
115 
116  Aws::String m_associationId;
117  bool m_associationIdHasBeenSet;
118  };
119 
120 } // namespace Model
121 } // namespace EC2
122 } // namespace Aws
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::SetAssociationId
void SetAssociationId(const char *value)
Definition: ReplaceIamInstanceProfileAssociationRequest.h:94
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::SetIamInstanceProfile
void SetIamInstanceProfile(IamInstanceProfileSpecification &&value)
Definition: ReplaceIamInstanceProfileAssociationRequest.h:58
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ReplaceIamInstanceProfileAssociationRequest.h:31
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::GetIamInstanceProfile
const IamInstanceProfileSpecification & GetIamInstanceProfile() const
Definition: ReplaceIamInstanceProfileAssociationRequest.h:43
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::SetAssociationId
void SetAssociationId(Aws::String &&value)
Definition: ReplaceIamInstanceProfileAssociationRequest.h:89
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::GetAssociationId
const Aws::String & GetAssociationId() const
Definition: ReplaceIamInstanceProfileAssociationRequest.h:74
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::WithAssociationId
ReplaceIamInstanceProfileAssociationRequest & WithAssociationId(const char *value)
Definition: ReplaceIamInstanceProfileAssociationRequest.h:109
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest
Definition: ReplaceIamInstanceProfileAssociationRequest.h:23
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::ReplaceIamInstanceProfileAssociationRequest
ReplaceIamInstanceProfileAssociationRequest()
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::SetAssociationId
void SetAssociationId(const Aws::String &value)
Definition: ReplaceIamInstanceProfileAssociationRequest.h:84
IamInstanceProfileSpecification.h
EC2Request.h
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::WithIamInstanceProfile
ReplaceIamInstanceProfileAssociationRequest & WithIamInstanceProfile(const IamInstanceProfileSpecification &value)
Definition: ReplaceIamInstanceProfileAssociationRequest.h:63
AWSString.h
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::WithAssociationId
ReplaceIamInstanceProfileAssociationRequest & WithAssociationId(Aws::String &&value)
Definition: ReplaceIamInstanceProfileAssociationRequest.h:104
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::IamInstanceProfileHasBeenSet
bool IamInstanceProfileHasBeenSet() const
Definition: ReplaceIamInstanceProfileAssociationRequest.h:48
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::WithAssociationId
ReplaceIamInstanceProfileAssociationRequest & WithAssociationId(const Aws::String &value)
Definition: ReplaceIamInstanceProfileAssociationRequest.h:99
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::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::SetIamInstanceProfile
void SetIamInstanceProfile(const IamInstanceProfileSpecification &value)
Definition: ReplaceIamInstanceProfileAssociationRequest.h:53
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::WithIamInstanceProfile
ReplaceIamInstanceProfileAssociationRequest & WithIamInstanceProfile(IamInstanceProfileSpecification &&value)
Definition: ReplaceIamInstanceProfileAssociationRequest.h:68
EC2_EXPORTS.h
Aws::EC2::Model::ReplaceIamInstanceProfileAssociationRequest::AssociationIdHasBeenSet
bool AssociationIdHasBeenSet() const
Definition: ReplaceIamInstanceProfileAssociationRequest.h:79