AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssociateIamInstanceProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/IamInstanceProfileSpecification.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API AssociateIamInstanceProfileRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateIamInstanceProfile"; }
29
30 AWS_EC2_API Aws::String SerializePayload() const override;
31
32 protected:
33 AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
34
35 public:
37
40 inline const IamInstanceProfileSpecification& GetIamInstanceProfile() const { return m_iamInstanceProfile; }
41 inline bool IamInstanceProfileHasBeenSet() const { return m_iamInstanceProfileHasBeenSet; }
42 template <typename IamInstanceProfileT = IamInstanceProfileSpecification>
43 void SetIamInstanceProfile(IamInstanceProfileT&& value) {
44 m_iamInstanceProfileHasBeenSet = true;
45 m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value);
46 }
47 template <typename IamInstanceProfileT = IamInstanceProfileSpecification>
49 SetIamInstanceProfile(std::forward<IamInstanceProfileT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
59 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
60 template <typename InstanceIdT = Aws::String>
61 void SetInstanceId(InstanceIdT&& value) {
62 m_instanceIdHasBeenSet = true;
63 m_instanceId = std::forward<InstanceIdT>(value);
64 }
65 template <typename InstanceIdT = Aws::String>
67 SetInstanceId(std::forward<InstanceIdT>(value));
68 return *this;
69 }
71 private:
72 IamInstanceProfileSpecification m_iamInstanceProfile;
73
74 Aws::String m_instanceId;
75 bool m_iamInstanceProfileHasBeenSet = false;
76 bool m_instanceIdHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace EC2
81} // namespace Aws
AssociateIamInstanceProfileRequest & WithInstanceId(InstanceIdT &&value)
AWS_EC2_API Aws::String SerializePayload() const override
AssociateIamInstanceProfileRequest & WithIamInstanceProfile(IamInstanceProfileT &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const IamInstanceProfileSpecification & GetIamInstanceProfile() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String