AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientId(const Aws::String& value) { m_clientIdHasBeenSet = true; m_clientId = value; }
47 inline void SetClientId(Aws::String&& value) { m_clientIdHasBeenSet = true; m_clientId = std::move(value); }
48 inline void SetClientId(const char* value) { m_clientIdHasBeenSet = true; m_clientId.assign(value); }
49 inline Oauth2Credential& WithClientId(const Aws::String& value) { SetClientId(value); return *this;}
50 inline Oauth2Credential& WithClientId(Aws::String&& value) { SetClientId(std::move(value)); return *this;}
51 inline Oauth2Credential& WithClientId(const char* value) { SetClientId(value); return *this;}
53
55
58 inline const Aws::String& GetClientSecret() const{ return m_clientSecret; }
59 inline bool ClientSecretHasBeenSet() const { return m_clientSecretHasBeenSet; }
60 inline void SetClientSecret(const Aws::String& value) { m_clientSecretHasBeenSet = true; m_clientSecret = value; }
61 inline void SetClientSecret(Aws::String&& value) { m_clientSecretHasBeenSet = true; m_clientSecret = std::move(value); }
62 inline void SetClientSecret(const char* value) { m_clientSecretHasBeenSet = true; m_clientSecret.assign(value); }
63 inline Oauth2Credential& WithClientSecret(const Aws::String& value) { SetClientSecret(value); return *this;}
64 inline Oauth2Credential& WithClientSecret(Aws::String&& value) { SetClientSecret(std::move(value)); return *this;}
65 inline Oauth2Credential& WithClientSecret(const char* value) { SetClientSecret(value); return *this;}
67 private:
68
69 Aws::String m_clientId;
70 bool m_clientIdHasBeenSet = false;
71
72 Aws::String m_clientSecret;
73 bool m_clientSecretHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace AppFabric
78} // namespace Aws
Oauth2Credential & WithClientId(Aws::String &&value)
void SetClientSecret(Aws::String &&value)
Oauth2Credential & WithClientSecret(const char *value)
AWS_APPFABRIC_API Oauth2Credential & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetClientId() const
void SetClientSecret(const Aws::String &value)
AWS_APPFABRIC_API Aws::Utils::Json::JsonValue Jsonize() const
Oauth2Credential & WithClientSecret(const Aws::String &value)
Oauth2Credential & WithClientId(const char *value)
Oauth2Credential & WithClientSecret(Aws::String &&value)
Oauth2Credential & WithClientId(const Aws::String &value)
void SetClientId(const Aws::String &value)
const Aws::String & GetClientSecret() const
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