/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECRPublic { namespace Model { /** *

An authorization token data object that corresponds to a public * registry.

See Also:

AWS * API Reference

*/ class AuthorizationData { public: AWS_ECRPUBLIC_API AuthorizationData(); AWS_ECRPUBLIC_API AuthorizationData(Aws::Utils::Json::JsonView jsonValue); AWS_ECRPUBLIC_API AuthorizationData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECRPUBLIC_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

A base64-encoded string that contains authorization data for a public Amazon * ECR registry. When the string is decoded, it's presented in the format * user:password for public registry authentication using docker * login.

*/ inline const Aws::String& GetAuthorizationToken() const{ return m_authorizationToken; } /** *

A base64-encoded string that contains authorization data for a public Amazon * ECR registry. When the string is decoded, it's presented in the format * user:password for public registry authentication using docker * login.

*/ inline bool AuthorizationTokenHasBeenSet() const { return m_authorizationTokenHasBeenSet; } /** *

A base64-encoded string that contains authorization data for a public Amazon * ECR registry. When the string is decoded, it's presented in the format * user:password for public registry authentication using docker * login.

*/ inline void SetAuthorizationToken(const Aws::String& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = value; } /** *

A base64-encoded string that contains authorization data for a public Amazon * ECR registry. When the string is decoded, it's presented in the format * user:password for public registry authentication using docker * login.

*/ inline void SetAuthorizationToken(Aws::String&& value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken = std::move(value); } /** *

A base64-encoded string that contains authorization data for a public Amazon * ECR registry. When the string is decoded, it's presented in the format * user:password for public registry authentication using docker * login.

*/ inline void SetAuthorizationToken(const char* value) { m_authorizationTokenHasBeenSet = true; m_authorizationToken.assign(value); } /** *

A base64-encoded string that contains authorization data for a public Amazon * ECR registry. When the string is decoded, it's presented in the format * user:password for public registry authentication using docker * login.

*/ inline AuthorizationData& WithAuthorizationToken(const Aws::String& value) { SetAuthorizationToken(value); return *this;} /** *

A base64-encoded string that contains authorization data for a public Amazon * ECR registry. When the string is decoded, it's presented in the format * user:password for public registry authentication using docker * login.

*/ inline AuthorizationData& WithAuthorizationToken(Aws::String&& value) { SetAuthorizationToken(std::move(value)); return *this;} /** *

A base64-encoded string that contains authorization data for a public Amazon * ECR registry. When the string is decoded, it's presented in the format * user:password for public registry authentication using docker * login.

*/ inline AuthorizationData& WithAuthorizationToken(const char* value) { SetAuthorizationToken(value); return *this;} /** *

The Unix time in seconds and milliseconds when the authorization token * expires. Authorization tokens are valid for 12 hours.

*/ inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; } /** *

The Unix time in seconds and milliseconds when the authorization token * expires. Authorization tokens are valid for 12 hours.

*/ inline bool ExpiresAtHasBeenSet() const { return m_expiresAtHasBeenSet; } /** *

The Unix time in seconds and milliseconds when the authorization token * expires. Authorization tokens are valid for 12 hours.

*/ inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAtHasBeenSet = true; m_expiresAt = value; } /** *

The Unix time in seconds and milliseconds when the authorization token * expires. Authorization tokens are valid for 12 hours.

*/ inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAtHasBeenSet = true; m_expiresAt = std::move(value); } /** *

The Unix time in seconds and milliseconds when the authorization token * expires. Authorization tokens are valid for 12 hours.

*/ inline AuthorizationData& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;} /** *

The Unix time in seconds and milliseconds when the authorization token * expires. Authorization tokens are valid for 12 hours.

*/ inline AuthorizationData& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;} private: Aws::String m_authorizationToken; bool m_authorizationTokenHasBeenSet = false; Aws::Utils::DateTime m_expiresAt; bool m_expiresAtHasBeenSet = false; }; } // namespace Model } // namespace ECRPublic } // namespace Aws