AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
ApiKeyCredential.h
1
6#pragma once
7#include <aws/appfabric/AppFabric_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 AppFabric {
20namespace Model {
21
28 public:
29 AWS_APPFABRIC_API ApiKeyCredential() = default;
30 AWS_APPFABRIC_API ApiKeyCredential(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetApiKey() const { return m_apiKey; }
39 inline bool ApiKeyHasBeenSet() const { return m_apiKeyHasBeenSet; }
40 template <typename ApiKeyT = Aws::String>
41 void SetApiKey(ApiKeyT&& value) {
42 m_apiKeyHasBeenSet = true;
43 m_apiKey = std::forward<ApiKeyT>(value);
44 }
45 template <typename ApiKeyT = Aws::String>
46 ApiKeyCredential& WithApiKey(ApiKeyT&& value) {
47 SetApiKey(std::forward<ApiKeyT>(value));
48 return *this;
49 }
51 private:
52 Aws::String m_apiKey;
53 bool m_apiKeyHasBeenSet = false;
54};
55
56} // namespace Model
57} // namespace AppFabric
58} // namespace Aws
ApiKeyCredential & WithApiKey(ApiKeyT &&value)
AWS_APPFABRIC_API ApiKeyCredential()=default
AWS_APPFABRIC_API ApiKeyCredential(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetApiKey() const
AWS_APPFABRIC_API ApiKeyCredential & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue