AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ContainerServiceRegistryLogin.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Lightsail
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LIGHTSAIL_API ContainerServiceRegistryLogin();
39 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetUsername() const{ return m_username; }
48 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
49 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
50 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
51 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
52 inline ContainerServiceRegistryLogin& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
53 inline ContainerServiceRegistryLogin& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
54 inline ContainerServiceRegistryLogin& WithUsername(const char* value) { SetUsername(value); return *this;}
56
58
62 inline const Aws::String& GetPassword() const{ return m_password; }
63 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
64 inline void SetPassword(const Aws::String& value) { m_passwordHasBeenSet = true; m_password = value; }
65 inline void SetPassword(Aws::String&& value) { m_passwordHasBeenSet = true; m_password = std::move(value); }
66 inline void SetPassword(const char* value) { m_passwordHasBeenSet = true; m_password.assign(value); }
67 inline ContainerServiceRegistryLogin& WithPassword(const Aws::String& value) { SetPassword(value); return *this;}
68 inline ContainerServiceRegistryLogin& WithPassword(Aws::String&& value) { SetPassword(std::move(value)); return *this;}
69 inline ContainerServiceRegistryLogin& WithPassword(const char* value) { SetPassword(value); return *this;}
71
73
79 inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; }
80 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
81 inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; }
82 inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); }
84 inline ContainerServiceRegistryLogin& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;}
86
88
92 inline const Aws::String& GetRegistry() const{ return m_registry; }
93 inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }
94 inline void SetRegistry(const Aws::String& value) { m_registryHasBeenSet = true; m_registry = value; }
95 inline void SetRegistry(Aws::String&& value) { m_registryHasBeenSet = true; m_registry = std::move(value); }
96 inline void SetRegistry(const char* value) { m_registryHasBeenSet = true; m_registry.assign(value); }
97 inline ContainerServiceRegistryLogin& WithRegistry(const Aws::String& value) { SetRegistry(value); return *this;}
98 inline ContainerServiceRegistryLogin& WithRegistry(Aws::String&& value) { SetRegistry(std::move(value)); return *this;}
99 inline ContainerServiceRegistryLogin& WithRegistry(const char* value) { SetRegistry(value); return *this;}
101 private:
102
103 Aws::String m_username;
104 bool m_usernameHasBeenSet = false;
105
106 Aws::String m_password;
107 bool m_passwordHasBeenSet = false;
108
109 Aws::Utils::DateTime m_expiresAt;
110 bool m_expiresAtHasBeenSet = false;
111
112 Aws::String m_registry;
113 bool m_registryHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Lightsail
118} // namespace Aws
ContainerServiceRegistryLogin & WithRegistry(const Aws::String &value)
ContainerServiceRegistryLogin & WithUsername(Aws::String &&value)
ContainerServiceRegistryLogin & WithExpiresAt(const Aws::Utils::DateTime &value)
AWS_LIGHTSAIL_API ContainerServiceRegistryLogin(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceRegistryLogin & WithRegistry(const char *value)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServiceRegistryLogin & WithPassword(const char *value)
ContainerServiceRegistryLogin & WithPassword(const Aws::String &value)
AWS_LIGHTSAIL_API ContainerServiceRegistryLogin & operator=(Aws::Utils::Json::JsonView jsonValue)
ContainerServiceRegistryLogin & WithPassword(Aws::String &&value)
ContainerServiceRegistryLogin & WithExpiresAt(Aws::Utils::DateTime &&value)
ContainerServiceRegistryLogin & WithUsername(const char *value)
ContainerServiceRegistryLogin & WithUsername(const Aws::String &value)
ContainerServiceRegistryLogin & WithRegistry(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue