AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplaceIamInstanceProfileAssociationRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/model/IamInstanceProfileSpecification.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace EC2
16{
17namespace 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_EC2_API Aws::String SerializePayload() const override;
34
35 protected:
36 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
37
38 public:
39
41
44 inline const IamInstanceProfileSpecification& GetIamInstanceProfile() const{ return m_iamInstanceProfile; }
45 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
46 inline void SetIamInstanceProfile(const IamInstanceProfileSpecification& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = value; }
47 inline void SetIamInstanceProfile(IamInstanceProfileSpecification&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::move(value); }
51
53
56 inline const Aws::String& GetAssociationId() const{ return m_associationId; }
57 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
58 inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; }
59 inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); }
60 inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); }
63 inline ReplaceIamInstanceProfileAssociationRequest& WithAssociationId(const char* value) { SetAssociationId(value); return *this;}
65 private:
66
67 IamInstanceProfileSpecification m_iamInstanceProfile;
68 bool m_iamInstanceProfileHasBeenSet = false;
69
70 Aws::String m_associationId;
71 bool m_associationIdHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace EC2
76} // namespace Aws
ReplaceIamInstanceProfileAssociationRequest & WithIamInstanceProfile(IamInstanceProfileSpecification &&value)
AWS_EC2_API Aws::String SerializePayload() const override
ReplaceIamInstanceProfileAssociationRequest & WithAssociationId(const char *value)
ReplaceIamInstanceProfileAssociationRequest & WithAssociationId(Aws::String &&value)
ReplaceIamInstanceProfileAssociationRequest & WithAssociationId(const Aws::String &value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ReplaceIamInstanceProfileAssociationRequest & WithIamInstanceProfile(const IamInstanceProfileSpecification &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String