AWS SDK for C++  1.9.65
AWS SDK for C++
RegisterInstanceEventNotificationAttributesRequest.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>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace EC2
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "RegisterInstanceEventNotificationAttributes"; }
31 
32  Aws::String SerializePayload() const override;
33 
34  protected:
35  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
36 
37  public:
38 
45  inline bool GetDryRun() const{ return m_dryRun; }
46 
53  inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
54 
61  inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
62 
69  inline RegisterInstanceEventNotificationAttributesRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
70 
71 
75  inline const RegisterInstanceTagAttributeRequest& GetInstanceTagAttribute() const{ return m_instanceTagAttribute; }
76 
80  inline bool InstanceTagAttributeHasBeenSet() const { return m_instanceTagAttributeHasBeenSet; }
81 
85  inline void SetInstanceTagAttribute(const RegisterInstanceTagAttributeRequest& value) { m_instanceTagAttributeHasBeenSet = true; m_instanceTagAttribute = value; }
86 
90  inline void SetInstanceTagAttribute(RegisterInstanceTagAttributeRequest&& value) { m_instanceTagAttributeHasBeenSet = true; m_instanceTagAttribute = std::move(value); }
91 
95  inline RegisterInstanceEventNotificationAttributesRequest& WithInstanceTagAttribute(const RegisterInstanceTagAttributeRequest& value) { SetInstanceTagAttribute(value); return *this;}
96 
100  inline RegisterInstanceEventNotificationAttributesRequest& WithInstanceTagAttribute(RegisterInstanceTagAttributeRequest&& value) { SetInstanceTagAttribute(std::move(value)); return *this;}
101 
102  private:
103 
104  bool m_dryRun;
105  bool m_dryRunHasBeenSet;
106 
107  RegisterInstanceTagAttributeRequest m_instanceTagAttribute;
108  bool m_instanceTagAttributeHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace EC2
113 } // namespace Aws
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::GetInstanceTagAttribute
const RegisterInstanceTagAttributeRequest & GetInstanceTagAttribute() const
Definition: RegisterInstanceEventNotificationAttributesRequest.h:75
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::GetDryRun
bool GetDryRun() const
Definition: RegisterInstanceEventNotificationAttributesRequest.h:45
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::RegisterInstanceTagAttributeRequest
Definition: RegisterInstanceTagAttributeRequest.h:36
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::SetInstanceTagAttribute
void SetInstanceTagAttribute(RegisterInstanceTagAttributeRequest &&value)
Definition: RegisterInstanceEventNotificationAttributesRequest.h:90
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest
Definition: RegisterInstanceEventNotificationAttributesRequest.h:22
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::WithInstanceTagAttribute
RegisterInstanceEventNotificationAttributesRequest & WithInstanceTagAttribute(const RegisterInstanceTagAttributeRequest &value)
Definition: RegisterInstanceEventNotificationAttributesRequest.h:95
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::RegisterInstanceEventNotificationAttributesRequest
RegisterInstanceEventNotificationAttributesRequest()
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::InstanceTagAttributeHasBeenSet
bool InstanceTagAttributeHasBeenSet() const
Definition: RegisterInstanceEventNotificationAttributesRequest.h:80
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RegisterInstanceEventNotificationAttributesRequest.h:30
EC2Request.h
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::DryRunHasBeenSet
bool DryRunHasBeenSet() const
Definition: RegisterInstanceEventNotificationAttributesRequest.h:53
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::SetInstanceTagAttribute
void SetInstanceTagAttribute(const RegisterInstanceTagAttributeRequest &value)
Definition: RegisterInstanceEventNotificationAttributesRequest.h:85
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::SetDryRun
void SetDryRun(bool value)
Definition: RegisterInstanceEventNotificationAttributesRequest.h:61
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
EC2_EXPORTS.h
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::WithInstanceTagAttribute
RegisterInstanceEventNotificationAttributesRequest & WithInstanceTagAttribute(RegisterInstanceTagAttributeRequest &&value)
Definition: RegisterInstanceEventNotificationAttributesRequest.h:100
RegisterInstanceTagAttributeRequest.h
Aws::EC2::Model::RegisterInstanceEventNotificationAttributesRequest::WithDryRun
RegisterInstanceEventNotificationAttributesRequest & WithDryRun(bool value)
Definition: RegisterInstanceEventNotificationAttributesRequest.h:69