AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
InstanceCredentials.h
1
6#pragma once
7#include <aws/gamelift/GameLift_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 GameLift
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_GAMELIFT_API InstanceCredentials();
41 AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetUserName() const{ return m_userName; }
49 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
50 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
51 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
52 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
53 inline InstanceCredentials& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
54 inline InstanceCredentials& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
55 inline InstanceCredentials& WithUserName(const char* value) { SetUserName(value); return *this;}
57
59
64 inline const Aws::String& GetSecret() const{ return m_secret; }
65 inline bool SecretHasBeenSet() const { return m_secretHasBeenSet; }
66 inline void SetSecret(const Aws::String& value) { m_secretHasBeenSet = true; m_secret = value; }
67 inline void SetSecret(Aws::String&& value) { m_secretHasBeenSet = true; m_secret = std::move(value); }
68 inline void SetSecret(const char* value) { m_secretHasBeenSet = true; m_secret.assign(value); }
69 inline InstanceCredentials& WithSecret(const Aws::String& value) { SetSecret(value); return *this;}
70 inline InstanceCredentials& WithSecret(Aws::String&& value) { SetSecret(std::move(value)); return *this;}
71 inline InstanceCredentials& WithSecret(const char* value) { SetSecret(value); return *this;}
73 private:
74
75 Aws::String m_userName;
76 bool m_userNameHasBeenSet = false;
77
78 Aws::String m_secret;
79 bool m_secretHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace GameLift
84} // namespace Aws
InstanceCredentials & WithUserName(const Aws::String &value)
InstanceCredentials & WithSecret(Aws::String &&value)
void SetSecret(const Aws::String &value)
InstanceCredentials & WithSecret(const char *value)
InstanceCredentials & WithUserName(const char *value)
InstanceCredentials & WithSecret(const Aws::String &value)
InstanceCredentials & WithUserName(Aws::String &&value)
AWS_GAMELIFT_API InstanceCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetUserName(const Aws::String &value)
AWS_GAMELIFT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GAMELIFT_API InstanceCredentials(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue