AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
Oauth2Credential.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 Oauth2Credential() = default;
30 AWS_APPFABRIC_API Oauth2Credential(Aws::Utils::Json::JsonView jsonValue);
32 AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetClientId() const { return m_clientId; }
39 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
40 template <typename ClientIdT = Aws::String>
41 void SetClientId(ClientIdT&& value) {
42 m_clientIdHasBeenSet = true;
43 m_clientId = std::forward<ClientIdT>(value);
44 }
45 template <typename ClientIdT = Aws::String>
46 Oauth2Credential& WithClientId(ClientIdT&& value) {
47 SetClientId(std::forward<ClientIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetClientSecret() const { return m_clientSecret; }
57 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
58 template <typename ClientSecretT = Aws::String>
59 void SetClientSecret(ClientSecretT&& value) {
60 m_clientSecretHasBeenSet = true;
61 m_clientSecret = std::forward<ClientSecretT>(value);
62 }
63 template <typename ClientSecretT = Aws::String>
64 Oauth2Credential& WithClientSecret(ClientSecretT&& value) {
65 SetClientSecret(std::forward<ClientSecretT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_clientId;
71
72 Aws::String m_clientSecret;
73 bool m_clientIdHasBeenSet = false;
74 bool m_clientSecretHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace AppFabric
79} // namespace Aws
AWS_APPFABRIC_API Oauth2Credential()=default
void SetClientSecret(ClientSecretT &&value)
AWS_APPFABRIC_API Oauth2Credential & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClientId() const
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
Oauth2Credential & WithClientSecret(ClientSecretT &&value)
const Aws::String & GetClientSecret() const
Oauth2Credential & WithClientId(ClientIdT &&value)
AWS_APPFABRIC_API Oauth2Credential(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue