AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateIamInstanceProfileRequest.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:
25 AWS_EC2_API AssociateIamInstanceProfileRequest() = default;
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_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 template<typename IamInstanceProfileT = IamInstanceProfileSpecification>
47 void SetIamInstanceProfile(IamInstanceProfileT&& value) { m_iamInstanceProfileHasBeenSet = true; m_iamInstanceProfile = std::forward<IamInstanceProfileT>(value); }
48 template<typename IamInstanceProfileT = IamInstanceProfileSpecification>
49 AssociateIamInstanceProfileRequest& WithIamInstanceProfile(IamInstanceProfileT&& value) { SetIamInstanceProfile(std::forward<IamInstanceProfileT>(value)); return *this;}
51
53
56 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
57 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
58 template<typename InstanceIdT = Aws::String>
59 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
60 template<typename InstanceIdT = Aws::String>
61 AssociateIamInstanceProfileRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
63 private:
64
65 IamInstanceProfileSpecification m_iamInstanceProfile;
66 bool m_iamInstanceProfileHasBeenSet = false;
67
68 Aws::String m_instanceId;
69 bool m_instanceIdHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace EC2
74} // 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