AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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#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 AppFabric
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_APPFABRIC_API Oauth2Credential() = default;
35 AWS_APPFABRIC_API Oauth2Credential(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetClientId() const { return m_clientId; }
45 inline bool ClientIdHasBeenSet() const { return m_clientIdHasBeenSet; }
46 template<typename ClientIdT = Aws::String>
47 void SetClientId(ClientIdT&& value) { m_clientIdHasBeenSet = true; m_clientId = std::forward<ClientIdT>(value); }
48 template<typename ClientIdT = Aws::String>
49 Oauth2Credential& WithClientId(ClientIdT&& value) { SetClientId(std::forward<ClientIdT>(value)); return *this;}
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) { m_clientSecretHasBeenSet = true; m_clientSecret = std::forward<ClientSecretT>(value); }
60 template<typename ClientSecretT = Aws::String>
61 Oauth2Credential& WithClientSecret(ClientSecretT&& value) { SetClientSecret(std::forward<ClientSecretT>(value)); return *this;}
63 private:
64
65 Aws::String m_clientId;
66 bool m_clientIdHasBeenSet = false;
67
68 Aws::String m_clientSecret;
69 bool m_clientSecretHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace AppFabric
74} // 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