AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
ApiSignature.h
1
6#pragma once
7#include <aws/apiportal/APIPortal_EXPORTS.h>
8#include <aws/apiportal/model/HttpMethod.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace APIPortal {
21namespace Model {
22
29 public:
30 AWS_APIPORTAL_API ApiSignature() = default;
31 AWS_APIPORTAL_API ApiSignature(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APIPORTAL_API ApiSignature& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
40 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
41 template <typename ResourceArnT = Aws::String>
42 void SetResourceArn(ResourceArnT&& value) {
43 m_resourceArnHasBeenSet = true;
44 m_resourceArn = std::forward<ResourceArnT>(value);
45 }
46 template <typename ResourceArnT = Aws::String>
47 ApiSignature& WithResourceArn(ResourceArnT&& value) {
48 SetResourceArn(std::forward<ResourceArnT>(value));
49 return *this;
50 }
52
54
57 inline HttpMethod GetMethod() const { return m_method; }
58 inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
59 inline void SetMethod(HttpMethod value) {
60 m_methodHasBeenSet = true;
61 m_method = value;
62 }
64 SetMethod(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetHostname() const { return m_hostname; }
74 inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
75 template <typename HostnameT = Aws::String>
76 void SetHostname(HostnameT&& value) {
77 m_hostnameHasBeenSet = true;
78 m_hostname = std::forward<HostnameT>(value);
79 }
80 template <typename HostnameT = Aws::String>
81 ApiSignature& WithHostname(HostnameT&& value) {
82 SetHostname(std::forward<HostnameT>(value));
83 return *this;
84 }
86
88
91 inline int GetPort() const { return m_port; }
92 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
93 inline void SetPort(int value) {
94 m_portHasBeenSet = true;
95 m_port = value;
96 }
97 inline ApiSignature& WithPort(int value) {
98 SetPort(value);
99 return *this;
100 }
102
104
107 inline const Aws::String& GetPath() const { return m_path; }
108 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
109 template <typename PathT = Aws::String>
110 void SetPath(PathT&& value) {
111 m_pathHasBeenSet = true;
112 m_path = std::forward<PathT>(value);
113 }
114 template <typename PathT = Aws::String>
115 ApiSignature& WithPath(PathT&& value) {
116 SetPath(std::forward<PathT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_resourceArn;
122
124
125 Aws::String m_hostname;
126
127 int m_port{0};
128
129 Aws::String m_path;
130 bool m_resourceArnHasBeenSet = false;
131 bool m_methodHasBeenSet = false;
132 bool m_hostnameHasBeenSet = false;
133 bool m_portHasBeenSet = false;
134 bool m_pathHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace APIPortal
139} // namespace Aws
AWS_APIPORTAL_API ApiSignature & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPath() const
void SetMethod(HttpMethod value)
AWS_APIPORTAL_API ApiSignature(Aws::Utils::Json::JsonView jsonValue)
ApiSignature & WithPort(int value)
const Aws::String & GetResourceArn() const
void SetHostname(HostnameT &&value)
AWS_APIPORTAL_API ApiSignature()=default
void SetResourceArn(ResourceArnT &&value)
ApiSignature & WithPath(PathT &&value)
const Aws::String & GetHostname() const
ApiSignature & WithMethod(HttpMethod value)
ApiSignature & WithResourceArn(ResourceArnT &&value)
ApiSignature & WithHostname(HostnameT &&value)
AWS_APIPORTAL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue