AWS SDK for C++  1.8.56
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:
38  InstanceCredentials& operator=(Aws::Utils::Json::JsonView jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
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
void SetUserName(const Aws::String &value)
#define AWS_GAMELIFT_API
InstanceCredentials & WithUserName(Aws::String &&value)
void SetSecret(const Aws::String &value)
InstanceCredentials & WithSecret(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
InstanceCredentials & WithSecret(const char *value)
InstanceCredentials & WithUserName(const Aws::String &value)
InstanceCredentials & WithUserName(const char *value)
InstanceCredentials & WithSecret(Aws::String &&value)