AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ModifyPrivateDnsNameOptionsRequest.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/ec2/EC2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/model/HostnameType.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 "ModifyPrivateDnsNameOptions"; }
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
47 inline bool GetDryRun() const{ return m_dryRun; }
48 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
49 inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; }
50 inline ModifyPrivateDnsNameOptionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;}
52
54
57 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
58 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
59 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
60 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
61 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
62 inline ModifyPrivateDnsNameOptionsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
63 inline ModifyPrivateDnsNameOptionsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
64 inline ModifyPrivateDnsNameOptionsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
66
68
75 inline const HostnameType& GetPrivateDnsHostnameType() const{ return m_privateDnsHostnameType; }
76 inline bool PrivateDnsHostnameTypeHasBeenSet() const { return m_privateDnsHostnameTypeHasBeenSet; }
77 inline void SetPrivateDnsHostnameType(const HostnameType& value) { m_privateDnsHostnameTypeHasBeenSet = true; m_privateDnsHostnameType = value; }
78 inline void SetPrivateDnsHostnameType(HostnameType&& value) { m_privateDnsHostnameTypeHasBeenSet = true; m_privateDnsHostnameType = std::move(value); }
82
84
88 inline bool GetEnableResourceNameDnsARecord() const{ return m_enableResourceNameDnsARecord; }
89 inline bool EnableResourceNameDnsARecordHasBeenSet() const { return m_enableResourceNameDnsARecordHasBeenSet; }
90 inline void SetEnableResourceNameDnsARecord(bool value) { m_enableResourceNameDnsARecordHasBeenSet = true; m_enableResourceNameDnsARecord = value; }
93
95
99 inline bool GetEnableResourceNameDnsAAAARecord() const{ return m_enableResourceNameDnsAAAARecord; }
100 inline bool EnableResourceNameDnsAAAARecordHasBeenSet() const { return m_enableResourceNameDnsAAAARecordHasBeenSet; }
101 inline void SetEnableResourceNameDnsAAAARecord(bool value) { m_enableResourceNameDnsAAAARecordHasBeenSet = true; m_enableResourceNameDnsAAAARecord = value; }
104 private:
105
106 bool m_dryRun;
107 bool m_dryRunHasBeenSet = false;
108
109 Aws::String m_instanceId;
110 bool m_instanceIdHasBeenSet = false;
111
112 HostnameType m_privateDnsHostnameType;
113 bool m_privateDnsHostnameTypeHasBeenSet = false;
114
115 bool m_enableResourceNameDnsARecord;
116 bool m_enableResourceNameDnsARecordHasBeenSet = false;
117
118 bool m_enableResourceNameDnsAAAARecord;
119 bool m_enableResourceNameDnsAAAARecordHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace EC2
124} // namespace Aws
ModifyPrivateDnsNameOptionsRequest & WithInstanceId(const Aws::String &value)
ModifyPrivateDnsNameOptionsRequest & WithInstanceId(const char *value)
ModifyPrivateDnsNameOptionsRequest & WithPrivateDnsHostnameType(const HostnameType &value)
ModifyPrivateDnsNameOptionsRequest & WithPrivateDnsHostnameType(HostnameType &&value)
AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
ModifyPrivateDnsNameOptionsRequest & WithEnableResourceNameDnsARecord(bool value)
ModifyPrivateDnsNameOptionsRequest & WithDryRun(bool value)
AWS_EC2_API Aws::String SerializePayload() const override
ModifyPrivateDnsNameOptionsRequest & WithEnableResourceNameDnsAAAARecord(bool value)
ModifyPrivateDnsNameOptionsRequest & WithInstanceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String