AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
UriPathRouteInput.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/migration-hub-refactor-spaces/MigrationHubRefactorSpaces_EXPORTS.h>
10#include <aws/migration-hub-refactor-spaces/model/HttpMethod.h>
11#include <aws/migration-hub-refactor-spaces/model/RouteActivationState.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace MigrationHubRefactorSpaces {
23namespace Model {
24
31 public:
32 AWS_MIGRATIONHUBREFACTORSPACES_API UriPathRouteInput() = default;
33 AWS_MIGRATIONHUBREFACTORSPACES_API UriPathRouteInput(Aws::Utils::Json::JsonView jsonValue);
34 AWS_MIGRATIONHUBREFACTORSPACES_API UriPathRouteInput& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline RouteActivationState GetActivationState() const { return m_activationState; }
43 inline bool ActivationStateHasBeenSet() const { return m_activationStateHasBeenSet; }
45 m_activationStateHasBeenSet = true;
46 m_activationState = value;
47 }
49 SetActivationState(value);
50 return *this;
51 }
53
55
59 inline bool GetAppendSourcePath() const { return m_appendSourcePath; }
60 inline bool AppendSourcePathHasBeenSet() const { return m_appendSourcePathHasBeenSet; }
61 inline void SetAppendSourcePath(bool value) {
62 m_appendSourcePathHasBeenSet = true;
63 m_appendSourcePath = value;
64 }
67 return *this;
68 }
70
72
77 inline bool GetIncludeChildPaths() const { return m_includeChildPaths; }
78 inline bool IncludeChildPathsHasBeenSet() const { return m_includeChildPathsHasBeenSet; }
79 inline void SetIncludeChildPaths(bool value) {
80 m_includeChildPathsHasBeenSet = true;
81 m_includeChildPaths = value;
82 }
85 return *this;
86 }
88
90
95 inline const Aws::Vector<HttpMethod>& GetMethods() const { return m_methods; }
96 inline bool MethodsHasBeenSet() const { return m_methodsHasBeenSet; }
97 template <typename MethodsT = Aws::Vector<HttpMethod>>
98 void SetMethods(MethodsT&& value) {
99 m_methodsHasBeenSet = true;
100 m_methods = std::forward<MethodsT>(value);
101 }
102 template <typename MethodsT = Aws::Vector<HttpMethod>>
103 UriPathRouteInput& WithMethods(MethodsT&& value) {
104 SetMethods(std::forward<MethodsT>(value));
105 return *this;
106 }
108 m_methodsHasBeenSet = true;
109 m_methods.push_back(value);
110 return *this;
111 }
113
115
121 inline const Aws::String& GetSourcePath() const { return m_sourcePath; }
122 inline bool SourcePathHasBeenSet() const { return m_sourcePathHasBeenSet; }
123 template <typename SourcePathT = Aws::String>
124 void SetSourcePath(SourcePathT&& value) {
125 m_sourcePathHasBeenSet = true;
126 m_sourcePath = std::forward<SourcePathT>(value);
127 }
128 template <typename SourcePathT = Aws::String>
129 UriPathRouteInput& WithSourcePath(SourcePathT&& value) {
130 SetSourcePath(std::forward<SourcePathT>(value));
131 return *this;
132 }
134 private:
136
137 bool m_appendSourcePath{false};
138
139 bool m_includeChildPaths{false};
140
141 Aws::Vector<HttpMethod> m_methods;
142
143 Aws::String m_sourcePath;
144 bool m_activationStateHasBeenSet = false;
145 bool m_appendSourcePathHasBeenSet = false;
146 bool m_includeChildPathsHasBeenSet = false;
147 bool m_methodsHasBeenSet = false;
148 bool m_sourcePathHasBeenSet = false;
149};
150
151} // namespace Model
152} // namespace MigrationHubRefactorSpaces
153} // namespace Aws
AWS_MIGRATIONHUBREFACTORSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_MIGRATIONHUBREFACTORSPACES_API UriPathRouteInput()=default
AWS_MIGRATIONHUBREFACTORSPACES_API UriPathRouteInput(Aws::Utils::Json::JsonView jsonValue)
AWS_MIGRATIONHUBREFACTORSPACES_API UriPathRouteInput & operator=(Aws::Utils::Json::JsonView jsonValue)
UriPathRouteInput & WithActivationState(RouteActivationState value)
UriPathRouteInput & WithSourcePath(SourcePathT &&value)
const Aws::Vector< HttpMethod > & GetMethods() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue