AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Credentials.h
1
6#pragma once
7#include <aws/elasticmapreduce/EMR_EXPORTS.h>
8#include <aws/elasticmapreduce/model/UsernamePassword.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace EMR {
20namespace Model {
21
29 public:
30 AWS_EMR_API Credentials() = default;
34
36
39 inline const UsernamePassword& GetUsernamePassword() const { return m_usernamePassword; }
40 inline bool UsernamePasswordHasBeenSet() const { return m_usernamePasswordHasBeenSet; }
41 template <typename UsernamePasswordT = UsernamePassword>
42 void SetUsernamePassword(UsernamePasswordT&& value) {
43 m_usernamePasswordHasBeenSet = true;
44 m_usernamePassword = std::forward<UsernamePasswordT>(value);
45 }
46 template <typename UsernamePasswordT = UsernamePassword>
47 Credentials& WithUsernamePassword(UsernamePasswordT&& value) {
48 SetUsernamePassword(std::forward<UsernamePasswordT>(value));
49 return *this;
50 }
52 private:
53 UsernamePassword m_usernamePassword;
54 bool m_usernamePasswordHasBeenSet = false;
55};
56
57} // namespace Model
58} // namespace EMR
59} // namespace Aws
AWS_EMR_API Credentials(Aws::Utils::Json::JsonView jsonValue)
bool UsernamePasswordHasBeenSet() const
Definition Credentials.h:40
AWS_EMR_API Credentials & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUsernamePassword(UsernamePasswordT &&value)
Definition Credentials.h:42
const UsernamePassword & GetUsernamePassword() const
Definition Credentials.h:39
AWS_EMR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_EMR_API Credentials()=default
Credentials & WithUsernamePassword(UsernamePasswordT &&value)
Definition Credentials.h:47
Aws::Utils::Json::JsonValue JsonValue