AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ApiKeyCredentials.h
1
6#pragma once
7#include <aws/appflow/Appflow_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 Appflow {
20namespace Model {
21
29 public:
30 AWS_APPFLOW_API ApiKeyCredentials() = default;
33 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetApiKey() const { return m_apiKey; }
40 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
41 template <typename ApiKeyT = Aws::String>
42 void SetApiKey(ApiKeyT&& value) {
43 m_apiKeyHasBeenSet = true;
44 m_apiKey = std::forward<ApiKeyT>(value);
45 }
46 template <typename ApiKeyT = Aws::String>
47 ApiKeyCredentials& WithApiKey(ApiKeyT&& value) {
48 SetApiKey(std::forward<ApiKeyT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetApiSecretKey() const { return m_apiSecretKey; }
58 inline bool ApiSecretKeyHasBeenSet() const { return m_apiSecretKeyHasBeenSet; }
59 template <typename ApiSecretKeyT = Aws::String>
60 void SetApiSecretKey(ApiSecretKeyT&& value) {
61 m_apiSecretKeyHasBeenSet = true;
62 m_apiSecretKey = std::forward<ApiSecretKeyT>(value);
63 }
64 template <typename ApiSecretKeyT = Aws::String>
65 ApiKeyCredentials& WithApiSecretKey(ApiSecretKeyT&& value) {
66 SetApiSecretKey(std::forward<ApiSecretKeyT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_apiKey;
72
73 Aws::String m_apiSecretKey;
74 bool m_apiKeyHasBeenSet = false;
75 bool m_apiSecretKeyHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace Appflow
80} // namespace Aws
AWS_APPFLOW_API ApiKeyCredentials(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetApiKey() const
ApiKeyCredentials & WithApiSecretKey(ApiSecretKeyT &&value)
AWS_APPFLOW_API ApiKeyCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
ApiKeyCredentials & WithApiKey(ApiKeyT &&value)
const Aws::String & GetApiSecretKey() const
AWS_APPFLOW_API ApiKeyCredentials()=default
void SetApiSecretKey(ApiSecretKeyT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue