AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
IdentifierParts.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace APIPortal {
20namespace Model {
21
28 public:
29 AWS_APIPORTAL_API IdentifierParts() = default;
30 AWS_APIPORTAL_API IdentifierParts(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetPath() const { return m_path; }
39 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
40 template <typename PathT = Aws::String>
41 void SetPath(PathT&& value) {
42 m_pathHasBeenSet = true;
43 m_path = std::forward<PathT>(value);
44 }
45 template <typename PathT = Aws::String>
46 IdentifierParts& WithPath(PathT&& value) {
47 SetPath(std::forward<PathT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetMethod() const { return m_method; }
57 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
58 template <typename MethodT = Aws::String>
59 void SetMethod(MethodT&& value) {
60 m_methodHasBeenSet = true;
61 m_method = std::forward<MethodT>(value);
62 }
63 template <typename MethodT = Aws::String>
64 IdentifierParts& WithMethod(MethodT&& value) {
65 SetMethod(std::forward<MethodT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
75 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
76 template <typename ResourceArnT = Aws::String>
77 void SetResourceArn(ResourceArnT&& value) {
78 m_resourceArnHasBeenSet = true;
79 m_resourceArn = std::forward<ResourceArnT>(value);
80 }
81 template <typename ResourceArnT = Aws::String>
82 IdentifierParts& WithResourceArn(ResourceArnT&& value) {
83 SetResourceArn(std::forward<ResourceArnT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_path;
89
90 Aws::String m_method;
91
92 Aws::String m_resourceArn;
93 bool m_pathHasBeenSet = false;
94 bool m_methodHasBeenSet = false;
95 bool m_resourceArnHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace APIPortal
100} // namespace Aws
AWS_APIPORTAL_API IdentifierParts()=default
AWS_APIPORTAL_API IdentifierParts(Aws::Utils::Json::JsonView jsonValue)
IdentifierParts & WithPath(PathT &&value)
const Aws::String & GetPath() const
IdentifierParts & WithMethod(MethodT &&value)
void SetResourceArn(ResourceArnT &&value)
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APIPORTAL_API IdentifierParts & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceArn() const
const Aws::String & GetMethod() const
IdentifierParts & WithResourceArn(ResourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue