AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
UpdateSubdomainAssociationRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/SubdomainAssociationAction.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Lightsail {
16namespace Model {
17
21 public:
22 AWS_LIGHTSAIL_API UpdateSubdomainAssociationRequest() = 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 "UpdateSubdomainAssociation"; }
29
30 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
31
33
35
39 inline const Aws::String& GetSubdomainName() const { return m_subdomainName; }
40 inline bool SubdomainNameHasBeenSet() const { return m_subdomainNameHasBeenSet; }
41 template <typename SubdomainNameT = Aws::String>
42 void SetSubdomainName(SubdomainNameT&& value) {
43 m_subdomainNameHasBeenSet = true;
44 m_subdomainName = std::forward<SubdomainNameT>(value);
45 }
46 template <typename SubdomainNameT = Aws::String>
48 SetSubdomainName(std::forward<SubdomainNameT>(value));
49 return *this;
50 }
52
54
66 inline SubdomainAssociationAction GetAction() const { return m_action; }
67 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
69 m_actionHasBeenSet = true;
70 m_action = value;
71 }
73 SetAction(value);
74 return *this;
75 }
77
79
85 inline const Aws::String& GetTargetResourceArn() const { return m_targetResourceArn; }
86 inline bool TargetResourceArnHasBeenSet() const { return m_targetResourceArnHasBeenSet; }
87 template <typename TargetResourceArnT = Aws::String>
88 void SetTargetResourceArn(TargetResourceArnT&& value) {
89 m_targetResourceArnHasBeenSet = true;
90 m_targetResourceArn = std::forward<TargetResourceArnT>(value);
91 }
92 template <typename TargetResourceArnT = Aws::String>
94 SetTargetResourceArn(std::forward<TargetResourceArnT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_subdomainName;
100
102
103 Aws::String m_targetResourceArn;
104 bool m_subdomainNameHasBeenSet = false;
105 bool m_actionHasBeenSet = false;
106 bool m_targetResourceArnHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace Lightsail
111} // namespace Aws
AWS_LIGHTSAIL_API UpdateSubdomainAssociationRequest()=default
UpdateSubdomainAssociationRequest & WithSubdomainName(SubdomainNameT &&value)
UpdateSubdomainAssociationRequest & WithAction(SubdomainAssociationAction value)
UpdateSubdomainAssociationRequest & WithTargetResourceArn(TargetResourceArnT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String