AWS SDK for C++

AWS SDK for C++ Version 1.11.757

Loading...
Searching...
No Matches
ContainerServiceRegistryLogin.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Lightsail {
21namespace Model {
22
30 public:
31 AWS_LIGHTSAIL_API ContainerServiceRegistryLogin() = default;
34 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetUsername() const { return m_username; }
42 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
43 template <typename UsernameT = Aws::String>
44 void SetUsername(UsernameT&& value) {
45 m_usernameHasBeenSet = true;
46 m_username = std::forward<UsernameT>(value);
47 }
48 template <typename UsernameT = Aws::String>
50 SetUsername(std::forward<UsernameT>(value));
51 return *this;
52 }
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) {
64 m_passwordHasBeenSet = true;
65 m_password = std::forward<PasswordT>(value);
66 }
67 template <typename PasswordT = Aws::String>
69 SetPassword(std::forward<PasswordT>(value));
70 return *this;
71 }
73
75
81 inline const Aws::Utils::DateTime& GetExpiresAt() const { return m_expiresAt; }
82 inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; }
83 template <typename ExpiresAtT = Aws::Utils::DateTime>
84 void SetExpiresAt(ExpiresAtT&& value) {
85 m_expiresAtHasBeenSet = true;
86 m_expiresAt = std::forward<ExpiresAtT>(value);
87 }
88 template <typename ExpiresAtT = Aws::Utils::DateTime>
90 SetExpiresAt(std::forward<ExpiresAtT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetRegistry() const { return m_registry; }
101 inline bool RegistryHasBeenSet() const { return m_registryHasBeenSet; }
102 template <typename RegistryT = Aws::String>
103 void SetRegistry(RegistryT&& value) {
104 m_registryHasBeenSet = true;
105 m_registry = std::forward<RegistryT>(value);
106 }
107 template <typename RegistryT = Aws::String>
109 SetRegistry(std::forward<RegistryT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_username;
115
116 Aws::String m_password;
117
118 Aws::Utils::DateTime m_expiresAt{};
119
120 Aws::String m_registry;
121 bool m_usernameHasBeenSet = false;
122 bool m_passwordHasBeenSet = false;
123 bool m_expiresAtHasBeenSet = false;
124 bool m_registryHasBeenSet = false;
125};
126
127} // namespace Model
128} // namespace Lightsail
129} // 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