AWS SDK for C++  1.9.44
AWS SDK for C++
InstanceCredentials.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GameLift
22 {
23 namespace Model
24 {
25 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetUserName() const{ return m_userName; }
46 
50  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
51 
55  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
56 
60  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
61 
65  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
66 
70  inline InstanceCredentials& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
71 
75  inline InstanceCredentials& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
76 
80  inline InstanceCredentials& WithUserName(const char* value) { SetUserName(value); return *this;}
81 
82 
88  inline const Aws::String& GetSecret() const{ return m_secret; }
89 
95  inline bool SecretHasBeenSet() const { return m_secretHasBeenSet; }
96 
102  inline void SetSecret(const Aws::String& value) { m_secretHasBeenSet = true; m_secret = value; }
103 
109  inline void SetSecret(Aws::String&& value) { m_secretHasBeenSet = true; m_secret = std::move(value); }
110 
116  inline void SetSecret(const char* value) { m_secretHasBeenSet = true; m_secret.assign(value); }
117 
123  inline InstanceCredentials& WithSecret(const Aws::String& value) { SetSecret(value); return *this;}
124 
130  inline InstanceCredentials& WithSecret(Aws::String&& value) { SetSecret(std::move(value)); return *this;}
131 
137  inline InstanceCredentials& WithSecret(const char* value) { SetSecret(value); return *this;}
138 
139  private:
140 
141  Aws::String m_userName;
142  bool m_userNameHasBeenSet;
143 
144  Aws::String m_secret;
145  bool m_secretHasBeenSet;
146  };
147 
148 } // namespace Model
149 } // namespace GameLift
150 } // namespace Aws
Aws::GameLift::Model::InstanceCredentials::WithSecret
InstanceCredentials & WithSecret(const Aws::String &value)
Definition: InstanceCredentials.h:123
Aws::GameLift::Model::InstanceCredentials::SetUserName
void SetUserName(const char *value)
Definition: InstanceCredentials.h:65
Aws::GameLift::Model::InstanceCredentials::SetSecret
void SetSecret(const char *value)
Definition: InstanceCredentials.h:116
Aws::GameLift::Model::InstanceCredentials::SetSecret
void SetSecret(const Aws::String &value)
Definition: InstanceCredentials.h:102
Aws::GameLift::Model::InstanceCredentials
Definition: InstanceCredentials.h:34
AWS_GAMELIFT_API
#define AWS_GAMELIFT_API
Definition: GameLift_EXPORTS.h:28
Aws::GameLift::Model::InstanceCredentials::InstanceCredentials
InstanceCredentials(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::InstanceCredentials::SetUserName
void SetUserName(Aws::String &&value)
Definition: InstanceCredentials.h:60
Aws::GameLift::Model::InstanceCredentials::operator=
InstanceCredentials & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GameLift::Model::InstanceCredentials::WithUserName
InstanceCredentials & WithUserName(const Aws::String &value)
Definition: InstanceCredentials.h:70
Aws::GameLift::Model::InstanceCredentials::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: InstanceCredentials.h:50
GameLift_EXPORTS.h
Aws::GameLift::Model::InstanceCredentials::WithSecret
InstanceCredentials & WithSecret(Aws::String &&value)
Definition: InstanceCredentials.h:130
Aws::GameLift::Model::InstanceCredentials::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GameLift::Model::InstanceCredentials::WithSecret
InstanceCredentials & WithSecret(const char *value)
Definition: InstanceCredentials.h:137
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GameLift::Model::InstanceCredentials::WithUserName
InstanceCredentials & WithUserName(const char *value)
Definition: InstanceCredentials.h:80
Aws::GameLift::Model::InstanceCredentials::SetUserName
void SetUserName(const Aws::String &value)
Definition: InstanceCredentials.h:55
Aws::GameLift::Model::InstanceCredentials::InstanceCredentials
InstanceCredentials()
Aws::GameLift::Model::InstanceCredentials::GetSecret
const Aws::String & GetSecret() const
Definition: InstanceCredentials.h:88
Aws::GameLift::Model::InstanceCredentials::SecretHasBeenSet
bool SecretHasBeenSet() const
Definition: InstanceCredentials.h:95
Aws::GameLift::Model::InstanceCredentials::GetUserName
const Aws::String & GetUserName() const
Definition: InstanceCredentials.h:45
Aws::GameLift::Model::InstanceCredentials::SetSecret
void SetSecret(Aws::String &&value)
Definition: InstanceCredentials.h:109
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GameLift::Model::InstanceCredentials::WithUserName
InstanceCredentials & WithUserName(Aws::String &&value)
Definition: InstanceCredentials.h:75