AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename UsernameT = Aws::String>
50 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet = true; m_username = std::forward<UsernameT>(value); }
51 template<typename UsernameT = Aws::String>
52 ContainerServiceRegistryLogin& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetPassword() const { return m_password; }
61 inline bool PasswordHasBeenSet() const { return m_passwordHasBeenSet; }
62 template<typename PasswordT = Aws::String>
63 void SetPassword(PasswordT&& value) { m_passwordHasBeenSet = true; m_password = std::forward<PasswordT>(value); }
64 template<typename PasswordT = Aws::String>
65 ContainerServiceRegistryLogin& WithPassword(PasswordT&& value) { SetPassword(std::forward<PasswordT>(value)); return *this;}
67
69
75 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
76 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
77 template<typename ExpiresAtT = Aws::Utils::DateTime>
78 void SetExpiresAt(ExpiresAtT&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::forward<ExpiresAtT>(value); }
79 template<typename ExpiresAtT = Aws::Utils::DateTime>
80 ContainerServiceRegistryLogin& WithExpiresAt(ExpiresAtT&& value) { SetExpiresAt(std::forward<ExpiresAtT>(value)); return *this;}
82
84
88 inline const Aws::String& GetRegistry() const { return m_registry; }
89 inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }
90 template<typename RegistryT = Aws::String>
91 void SetRegistry(RegistryT&& value) { m_registryHasBeenSet = true; m_registry = std::forward<RegistryT>(value); }
92 template<typename RegistryT = Aws::String>
93 ContainerServiceRegistryLogin& WithRegistry(RegistryT&& value) { SetRegistry(std::forward<RegistryT>(value)); return *this;}
95 private:
96
97 Aws::String m_username;
98 bool m_usernameHasBeenSet = false;
99
100 Aws::String m_password;
101 bool m_passwordHasBeenSet = false;
102
103 Aws::Utils::DateTime m_expiresAt{};
104 bool m_expiresAtHasBeenSet = false;
105
106 Aws::String m_registry;
107 bool m_registryHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Lightsail
112} // namespace Aws
ContainerServiceRegistryLogin & WithExpiresAt(ExpiresAtT &&value)
AWS_LIGHTSAIL_API ContainerServiceRegistryLogin(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
ContainerServiceRegistryLogin & WithPassword(PasswordT &&value)
AWS_LIGHTSAIL_API ContainerServiceRegistryLogin & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LIGHTSAIL_API ContainerServiceRegistryLogin()=default
ContainerServiceRegistryLogin & WithUsername(UsernameT &&value)
ContainerServiceRegistryLogin & WithRegistry(RegistryT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue