AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
AssociateInstanceEventWindowRequest.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/InstanceEventWindowAssociationRequest.h>
11
12#include <utility>
13
14namespace Aws {
15namespace EC2 {
16namespace Model {
17
21 public:
22 AWS_EC2_API AssociateInstanceEventWindowRequest() = 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 "AssociateInstanceEventWindow"; }
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
43 inline bool GetDryRun() const { return m_dryRun; }
44 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
45 inline void SetDryRun(bool value) {
46 m_dryRunHasBeenSet = true;
47 m_dryRun = value;
48 }
50 SetDryRun(value);
51 return *this;
52 }
54
56
59 inline const Aws::String& GetInstanceEventWindowId() const { return m_instanceEventWindowId; }
60 inline bool InstanceEventWindowIdHasBeenSet() const { return m_instanceEventWindowIdHasBeenSet; }
61 template <typename InstanceEventWindowIdT = Aws::String>
62 void SetInstanceEventWindowId(InstanceEventWindowIdT&& value) {
63 m_instanceEventWindowIdHasBeenSet = true;
64 m_instanceEventWindowId = std::forward<InstanceEventWindowIdT>(value);
65 }
66 template <typename InstanceEventWindowIdT = Aws::String>
68 SetInstanceEventWindowId(std::forward<InstanceEventWindowIdT>(value));
69 return *this;
70 }
72
74
77 inline const InstanceEventWindowAssociationRequest& GetAssociationTarget() const { return m_associationTarget; }
78 inline bool AssociationTargetHasBeenSet() const { return m_associationTargetHasBeenSet; }
79 template <typename AssociationTargetT = InstanceEventWindowAssociationRequest>
80 void SetAssociationTarget(AssociationTargetT&& value) {
81 m_associationTargetHasBeenSet = true;
82 m_associationTarget = std::forward<AssociationTargetT>(value);
83 }
84 template <typename AssociationTargetT = InstanceEventWindowAssociationRequest>
86 SetAssociationTarget(std::forward<AssociationTargetT>(value));
87 return *this;
88 }
90 private:
91 bool m_dryRun{false};
92
93 Aws::String m_instanceEventWindowId;
94
95 InstanceEventWindowAssociationRequest m_associationTarget;
96 bool m_dryRunHasBeenSet = false;
97 bool m_instanceEventWindowIdHasBeenSet = false;
98 bool m_associationTargetHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace EC2
103} // namespace Aws
AssociateInstanceEventWindowRequest & WithAssociationTarget(AssociationTargetT &&value)
AssociateInstanceEventWindowRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
const InstanceEventWindowAssociationRequest & GetAssociationTarget() const
AssociateInstanceEventWindowRequest & WithInstanceEventWindowId(InstanceEventWindowIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String