AWS SDK for C++  1.9.104
AWS SDK for C++
ContainerServiceRegistryLogin.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace Lightsail
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
46  inline const Aws::String& GetUsername() const{ return m_username; }
47 
52  inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
53 
58  inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
59 
64  inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
65 
70  inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
71 
76  inline ContainerServiceRegistryLogin& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
77 
82  inline ContainerServiceRegistryLogin& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
83 
88  inline ContainerServiceRegistryLogin& WithUsername(const char* value) { SetUsername(value); return *this;}
89 
90 
95  inline const Aws::String& GetPassword() const{ return m_password; }
96 
101  inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
102 
107  inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
108 
113  inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
114 
119  inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
120 
125  inline ContainerServiceRegistryLogin& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
126 
131  inline ContainerServiceRegistryLogin& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
132 
137  inline ContainerServiceRegistryLogin& WithPassword(const char* value) { SetPassword(value); return *this;}
138 
139 
146  inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; }
147 
154  inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
155 
162  inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
163 
170  inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); }
171 
178  inline ContainerServiceRegistryLogin& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;}
179 
186  inline ContainerServiceRegistryLogin& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;}
187 
188 
193  inline const Aws::String& GetRegistry() const{ return m_registry; }
194 
199  inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }
200 
205  inline void SetRegistry(const Aws::String& value) { m_registryHasBeenSet = true; m_registry = value; }
206 
211  inline void SetRegistry(Aws::String&& value) { m_registryHasBeenSet = true; m_registry = std::move(value); }
212 
217  inline void SetRegistry(const char* value) { m_registryHasBeenSet = true; m_registry.assign(value); }
218 
223  inline ContainerServiceRegistryLogin& WithRegistry(const Aws::String& value) { SetRegistry(value); return *this;}
224 
229  inline ContainerServiceRegistryLogin& WithRegistry(Aws::String&& value) { SetRegistry(std::move(value)); return *this;}
230 
235  inline ContainerServiceRegistryLogin& WithRegistry(const char* value) { SetRegistry(value); return *this;}
236 
237  private:
238 
239  Aws::String m_username;
240  bool m_usernameHasBeenSet;
241 
242  Aws::String m_password;
243  bool m_passwordHasBeenSet;
244 
245  Aws::Utils::DateTime m_expiresAt;
246  bool m_expiresAtHasBeenSet;
247 
248  Aws::String m_registry;
249  bool m_registryHasBeenSet;
250  };
251 
252 } // namespace Model
253 } // namespace Lightsail
254 } // namespace Aws
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithPassword
ContainerServiceRegistryLogin & WithPassword(const Aws::String &value)
Definition: ContainerServiceRegistryLogin.h:125
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetRegistry
void SetRegistry(const char *value)
Definition: ContainerServiceRegistryLogin.h:217
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithExpiresAt
ContainerServiceRegistryLogin & WithExpiresAt(Aws::Utils::DateTime &&value)
Definition: ContainerServiceRegistryLogin.h:186
Aws::Lightsail::Model::ContainerServiceRegistryLogin::ContainerServiceRegistryLogin
ContainerServiceRegistryLogin()
Aws::Lightsail::Model::ContainerServiceRegistryLogin::RegistryHasBeenSet
bool RegistryHasBeenSet() const
Definition: ContainerServiceRegistryLogin.h:199
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithUsername
ContainerServiceRegistryLogin & WithUsername(Aws::String &&value)
Definition: ContainerServiceRegistryLogin.h:82
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithUsername
ContainerServiceRegistryLogin & WithUsername(const char *value)
Definition: ContainerServiceRegistryLogin.h:88
Aws::Lightsail::Model::ContainerServiceRegistryLogin::operator=
ContainerServiceRegistryLogin & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ContainerServiceRegistryLogin::GetExpiresAt
const Aws::Utils::DateTime & GetExpiresAt() const
Definition: ContainerServiceRegistryLogin.h:146
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithRegistry
ContainerServiceRegistryLogin & WithRegistry(Aws::String &&value)
Definition: ContainerServiceRegistryLogin.h:229
DateTime.h
Aws::Lightsail::Model::ContainerServiceRegistryLogin::GetPassword
const Aws::String & GetPassword() const
Definition: ContainerServiceRegistryLogin.h:95
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithRegistry
ContainerServiceRegistryLogin & WithRegistry(const char *value)
Definition: ContainerServiceRegistryLogin.h:235
Aws::Lightsail::Model::ContainerServiceRegistryLogin
Definition: ContainerServiceRegistryLogin.h:34
Aws::Lightsail::Model::ContainerServiceRegistryLogin::GetUsername
const Aws::String & GetUsername() const
Definition: ContainerServiceRegistryLogin.h:46
Aws::Lightsail::Model::ContainerServiceRegistryLogin::UsernameHasBeenSet
bool UsernameHasBeenSet() const
Definition: ContainerServiceRegistryLogin.h:52
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetPassword
void SetPassword(const char *value)
Definition: ContainerServiceRegistryLogin.h:119
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithRegistry
ContainerServiceRegistryLogin & WithRegistry(const Aws::String &value)
Definition: ContainerServiceRegistryLogin.h:223
Aws::Lightsail::Model::ContainerServiceRegistryLogin::GetRegistry
const Aws::String & GetRegistry() const
Definition: ContainerServiceRegistryLogin.h:193
Aws::Lightsail::Model::ContainerServiceRegistryLogin::ContainerServiceRegistryLogin
ContainerServiceRegistryLogin(Aws::Utils::Json::JsonView jsonValue)
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetUsername
void SetUsername(const char *value)
Definition: ContainerServiceRegistryLogin.h:70
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetUsername
void SetUsername(Aws::String &&value)
Definition: ContainerServiceRegistryLogin.h:64
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetExpiresAt
void SetExpiresAt(const Aws::Utils::DateTime &value)
Definition: ContainerServiceRegistryLogin.h:162
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetRegistry
void SetRegistry(Aws::String &&value)
Definition: ContainerServiceRegistryLogin.h:211
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Lightsail_EXPORTS.h
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithPassword
ContainerServiceRegistryLogin & WithPassword(const char *value)
Definition: ContainerServiceRegistryLogin.h:137
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetExpiresAt
void SetExpiresAt(Aws::Utils::DateTime &&value)
Definition: ContainerServiceRegistryLogin.h:170
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithUsername
ContainerServiceRegistryLogin & WithUsername(const Aws::String &value)
Definition: ContainerServiceRegistryLogin.h:76
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithPassword
ContainerServiceRegistryLogin & WithPassword(Aws::String &&value)
Definition: ContainerServiceRegistryLogin.h:131
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetPassword
void SetPassword(Aws::String &&value)
Definition: ContainerServiceRegistryLogin.h:113
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetRegistry
void SetRegistry(const Aws::String &value)
Definition: ContainerServiceRegistryLogin.h:205
Aws::Lightsail::Model::ContainerServiceRegistryLogin::WithExpiresAt
ContainerServiceRegistryLogin & WithExpiresAt(const Aws::Utils::DateTime &value)
Definition: ContainerServiceRegistryLogin.h:178
Aws::Lightsail::Model::ContainerServiceRegistryLogin::PasswordHasBeenSet
bool PasswordHasBeenSet() const
Definition: ContainerServiceRegistryLogin.h:101
Aws::Lightsail::Model::ContainerServiceRegistryLogin::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Lightsail::Model::ContainerServiceRegistryLogin::ExpiresAtHasBeenSet
bool ExpiresAtHasBeenSet() const
Definition: ContainerServiceRegistryLogin.h:154
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetPassword
void SetPassword(const Aws::String &value)
Definition: ContainerServiceRegistryLogin.h:107
Aws::Lightsail::Model::ContainerServiceRegistryLogin::SetUsername
void SetUsername(const Aws::String &value)
Definition: ContainerServiceRegistryLogin.h:58