AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
OAuthClientCredentials.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/quicksight/QuickSight_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace QuickSight {
20namespace Model {
21
32 public:
33 AWS_QUICKSIGHT_API OAuthClientCredentials() = default;
36 AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetClientId() const { return m_clientId; }
44 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
45 template <typename ClientIdT = Aws::String>
46 void SetClientId(ClientIdT&& value) {
47 m_clientIdHasBeenSet = true;
48 m_clientId = std::forward<ClientIdT>(value);
49 }
50 template <typename ClientIdT = Aws::String>
52 SetClientId(std::forward<ClientIdT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
63 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
64 template <typename ClientSecretT = Aws::String>
65 void SetClientSecret(ClientSecretT&& value) {
66 m_clientSecretHasBeenSet = true;
67 m_clientSecret = std::forward<ClientSecretT>(value);
68 }
69 template <typename ClientSecretT = Aws::String>
70 OAuthClientCredentials& WithClientSecret(ClientSecretT&& value) {
71 SetClientSecret(std::forward<ClientSecretT>(value));
72 return *this;
73 }
75
77
81 inline const Aws::String& GetUsername() const { return m_username; }
82 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
83 template <typename UsernameT = Aws::String>
84 void SetUsername(UsernameT&& value) {
85 m_usernameHasBeenSet = true;
86 m_username = std::forward<UsernameT>(value);
87 }
88 template <typename UsernameT = Aws::String>
90 SetUsername(std::forward<UsernameT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_clientId;
96
97 Aws::String m_clientSecret;
98
99 Aws::String m_username;
100 bool m_clientIdHasBeenSet = false;
101 bool m_clientSecretHasBeenSet = false;
102 bool m_usernameHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace QuickSight
107} // namespace Aws
AWS_QUICKSIGHT_API OAuthClientCredentials()=default
AWS_QUICKSIGHT_API OAuthClientCredentials(Aws::Utils::Json::JsonView jsonValue)
OAuthClientCredentials & WithClientId(ClientIdT &&value)
OAuthClientCredentials & WithUsername(UsernameT &&value)
OAuthClientCredentials & WithClientSecret(ClientSecretT &&value)
AWS_QUICKSIGHT_API OAuthClientCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_QUICKSIGHT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue