AWS SDK for C++

AWS SDK for C++ Version 1.11.819

Loading...
Searching...
No Matches
CreateServiceFunctionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
10#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
11#include <aws/resiliencehubv2/model/ServiceFunctionCriticality.h>
12
13#include <utility>
14
15namespace Aws {
16namespace resiliencehubv2 {
17namespace Model {
18
22 public:
23 AWS_RESILIENCEHUBV2_API CreateServiceFunctionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateServiceFunction"; }
30
31 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
32
34
35 inline const Aws::String& GetName() const { return m_name; }
36 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
37 template <typename NameT = Aws::String>
38 void SetName(NameT&& value) {
39 m_nameHasBeenSet = true;
40 m_name = std::forward<NameT>(value);
41 }
42 template <typename NameT = Aws::String>
44 SetName(std::forward<NameT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
52 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
53 template <typename ServiceArnT = Aws::String>
54 void SetServiceArn(ServiceArnT&& value) {
55 m_serviceArnHasBeenSet = true;
56 m_serviceArn = std::forward<ServiceArnT>(value);
57 }
58 template <typename ServiceArnT = Aws::String>
60 SetServiceArn(std::forward<ServiceArnT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template <typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) {
71 m_descriptionHasBeenSet = true;
72 m_description = std::forward<DescriptionT>(value);
73 }
74 template <typename DescriptionT = Aws::String>
76 SetDescription(std::forward<DescriptionT>(value));
77 return *this;
78 }
80
82
85 inline ServiceFunctionCriticality GetCriticality() const { return m_criticality; }
86 inline bool CriticalityHasBeenSet() const { return m_criticalityHasBeenSet; }
88 m_criticalityHasBeenSet = true;
89 m_criticality = value;
90 }
92 SetCriticality(value);
93 return *this;
94 }
96
98
99 inline const Aws::String& GetClientToken() const { return m_clientToken; }
100 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
101 template <typename ClientTokenT = Aws::String>
102 void SetClientToken(ClientTokenT&& value) {
103 m_clientTokenHasBeenSet = true;
104 m_clientToken = std::forward<ClientTokenT>(value);
105 }
106 template <typename ClientTokenT = Aws::String>
108 SetClientToken(std::forward<ClientTokenT>(value));
109 return *this;
110 }
112 private:
113 Aws::String m_name;
114
115 Aws::String m_serviceArn;
116
117 Aws::String m_description;
118
120
122 bool m_nameHasBeenSet = false;
123 bool m_serviceArnHasBeenSet = false;
124 bool m_descriptionHasBeenSet = false;
125 bool m_criticalityHasBeenSet = false;
126 bool m_clientTokenHasBeenSet = true;
127};
128
129} // namespace Model
130} // namespace resiliencehubv2
131} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
CreateServiceFunctionRequest & WithClientToken(ClientTokenT &&value)
AWS_RESILIENCEHUBV2_API CreateServiceFunctionRequest()=default
CreateServiceFunctionRequest & WithServiceArn(ServiceArnT &&value)
CreateServiceFunctionRequest & WithCriticality(ServiceFunctionCriticality value)
CreateServiceFunctionRequest & WithDescription(DescriptionT &&value)
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String