AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Appflow
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_APPFLOW_API ApiKeyCredentials();
38 AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetApiKey() const{ return m_apiKey; }
46 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
47 inline void SetApiKey(const Aws::String& value) { m_apiKeyHasBeenSet = true; m_apiKey = value; }
48 inline void SetApiKey(Aws::String&& value) { m_apiKeyHasBeenSet = true; m_apiKey = std::move(value); }
49 inline void SetApiKey(const char* value) { m_apiKeyHasBeenSet = true; m_apiKey.assign(value); }
50 inline ApiKeyCredentials& WithApiKey(const Aws::String& value) { SetApiKey(value); return *this;}
51 inline ApiKeyCredentials& WithApiKey(Aws::String&& value) { SetApiKey(std::move(value)); return *this;}
52 inline ApiKeyCredentials& WithApiKey(const char* value) { SetApiKey(value); return *this;}
54
56
59 inline const Aws::String& GetApiSecretKey() const{ return m_apiSecretKey; }
60 inline bool ApiSecretKeyHasBeenSet() const { return m_apiSecretKeyHasBeenSet; }
61 inline void SetApiSecretKey(const Aws::String& value) { m_apiSecretKeyHasBeenSet = true; m_apiSecretKey = value; }
62 inline void SetApiSecretKey(Aws::String&& value) { m_apiSecretKeyHasBeenSet = true; m_apiSecretKey = std::move(value); }
63 inline void SetApiSecretKey(const char* value) { m_apiSecretKeyHasBeenSet = true; m_apiSecretKey.assign(value); }
64 inline ApiKeyCredentials& WithApiSecretKey(const Aws::String& value) { SetApiSecretKey(value); return *this;}
65 inline ApiKeyCredentials& WithApiSecretKey(Aws::String&& value) { SetApiSecretKey(std::move(value)); return *this;}
66 inline ApiKeyCredentials& WithApiSecretKey(const char* value) { SetApiSecretKey(value); return *this;}
68 private:
69
70 Aws::String m_apiKey;
71 bool m_apiKeyHasBeenSet = false;
72
73 Aws::String m_apiSecretKey;
74 bool m_apiSecretKeyHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace Appflow
79} // namespace Aws
AWS_APPFLOW_API ApiKeyCredentials(Aws::Utils::Json::JsonView jsonValue)
ApiKeyCredentials & WithApiKey(const char *value)
ApiKeyCredentials & WithApiSecretKey(const char *value)
AWS_APPFLOW_API Aws::Utils::Json::JsonValue Jsonize() const
ApiKeyCredentials & WithApiKey(const Aws::String &value)
ApiKeyCredentials & WithApiSecretKey(const Aws::String &value)
const Aws::String & GetApiKey() const
ApiKeyCredentials & WithApiKey(Aws::String &&value)
AWS_APPFLOW_API ApiKeyCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetApiSecretKey(Aws::String &&value)
const Aws::String & GetApiSecretKey() const
void SetApiKey(const Aws::String &value)
void SetApiSecretKey(const Aws::String &value)
ApiKeyCredentials & WithApiSecretKey(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue