/** * 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 CodeCatalyst { namespace Model { /** *

Information about a specified personal access token (PAT).

See * Also:

AWS * API Reference

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

The system-generated ID of the personal access token.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The system-generated ID of the personal access token.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The system-generated ID of the personal access token.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The system-generated ID of the personal access token.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The system-generated ID of the personal access token.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The system-generated ID of the personal access token.

*/ inline AccessTokenSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The system-generated ID of the personal access token.

*/ inline AccessTokenSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The system-generated ID of the personal access token.

*/ inline AccessTokenSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The friendly name of the personal access token.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The friendly name of the personal access token.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The friendly name of the personal access token.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The friendly name of the personal access token.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The friendly name of the personal access token.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The friendly name of the personal access token.

*/ inline AccessTokenSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The friendly name of the personal access token.

*/ inline AccessTokenSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The friendly name of the personal access token.

*/ inline AccessTokenSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The date and time when the personal access token will expire, in coordinated * universal time (UTC) timestamp format as specified in RFC 3339.

*/ inline const Aws::Utils::DateTime& GetExpiresTime() const{ return m_expiresTime; } /** *

The date and time when the personal access token will expire, in coordinated * universal time (UTC) timestamp format as specified in RFC 3339.

*/ inline bool ExpiresTimeHasBeenSet() const { return m_expiresTimeHasBeenSet; } /** *

The date and time when the personal access token will expire, in coordinated * universal time (UTC) timestamp format as specified in RFC 3339.

*/ inline void SetExpiresTime(const Aws::Utils::DateTime& value) { m_expiresTimeHasBeenSet = true; m_expiresTime = value; } /** *

The date and time when the personal access token will expire, in coordinated * universal time (UTC) timestamp format as specified in RFC 3339.

*/ inline void SetExpiresTime(Aws::Utils::DateTime&& value) { m_expiresTimeHasBeenSet = true; m_expiresTime = std::move(value); } /** *

The date and time when the personal access token will expire, in coordinated * universal time (UTC) timestamp format as specified in RFC 3339.

*/ inline AccessTokenSummary& WithExpiresTime(const Aws::Utils::DateTime& value) { SetExpiresTime(value); return *this;} /** *

The date and time when the personal access token will expire, in coordinated * universal time (UTC) timestamp format as specified in RFC 3339.

*/ inline AccessTokenSummary& WithExpiresTime(Aws::Utils::DateTime&& value) { SetExpiresTime(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Utils::DateTime m_expiresTime; bool m_expiresTimeHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws