AWS SDK for C++

AWS SDK for C++ Version 1.11.816

Loading...
Searching...
No Matches
CreateServiceFunctionResourcesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resiliencehubv2/Resiliencehubv2Request.h>
10#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace resiliencehubv2 {
16namespace Model {
17
21 public:
22 AWS_RESILIENCEHUBV2_API CreateServiceFunctionResourcesRequest() = 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 "CreateServiceFunctionResources"; }
29
30 AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override;
31
33
34 inline const Aws::String& GetServiceArn() const { return m_serviceArn; }
35 inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; }
36 template <typename ServiceArnT = Aws::String>
37 void SetServiceArn(ServiceArnT&& value) {
38 m_serviceArnHasBeenSet = true;
39 m_serviceArn = std::forward<ServiceArnT>(value);
40 }
41 template <typename ServiceArnT = Aws::String>
43 SetServiceArn(std::forward<ServiceArnT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetServiceFunctionId() const { return m_serviceFunctionId; }
53 inline bool ServiceFunctionIdHasBeenSet() const { return m_serviceFunctionIdHasBeenSet; }
54 template <typename ServiceFunctionIdT = Aws::String>
55 void SetServiceFunctionId(ServiceFunctionIdT&& value) {
56 m_serviceFunctionIdHasBeenSet = true;
57 m_serviceFunctionId = std::forward<ServiceFunctionIdT>(value);
58 }
59 template <typename ServiceFunctionIdT = Aws::String>
61 SetServiceFunctionId(std::forward<ServiceFunctionIdT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
71 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
72 template <typename ResourcesT = Aws::Vector<Aws::String>>
73 void SetResources(ResourcesT&& value) {
74 m_resourcesHasBeenSet = true;
75 m_resources = std::forward<ResourcesT>(value);
76 }
77 template <typename ResourcesT = Aws::Vector<Aws::String>>
79 SetResources(std::forward<ResourcesT>(value));
80 return *this;
81 }
82 template <typename ResourcesT = Aws::String>
84 m_resourcesHasBeenSet = true;
85 m_resources.emplace_back(std::forward<ResourcesT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_serviceArn;
91
92 Aws::String m_serviceFunctionId;
93
94 Aws::Vector<Aws::String> m_resources;
95 bool m_serviceArnHasBeenSet = false;
96 bool m_serviceFunctionIdHasBeenSet = false;
97 bool m_resourcesHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace resiliencehubv2
102} // namespace Aws
AWS_RESILIENCEHUBV2_API CreateServiceFunctionResourcesRequest()=default
CreateServiceFunctionResourcesRequest & WithResources(ResourcesT &&value)
CreateServiceFunctionResourcesRequest & WithServiceFunctionId(ServiceFunctionIdT &&value)
CreateServiceFunctionResourcesRequest & AddResources(ResourcesT &&value)
AWS_RESILIENCEHUBV2_API Aws::String SerializePayload() const override
CreateServiceFunctionResourcesRequest & WithServiceArn(ServiceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector