/** * 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 active sessions for a Dev Environment.

See * Also:

AWS * API Reference

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

The name of the space.

*/ inline const Aws::String& GetSpaceName() const{ return m_spaceName; } /** *

The name of the space.

*/ inline bool SpaceNameHasBeenSet() const { return m_spaceNameHasBeenSet; } /** *

The name of the space.

*/ inline void SetSpaceName(const Aws::String& value) { m_spaceNameHasBeenSet = true; m_spaceName = value; } /** *

The name of the space.

*/ inline void SetSpaceName(Aws::String&& value) { m_spaceNameHasBeenSet = true; m_spaceName = std::move(value); } /** *

The name of the space.

*/ inline void SetSpaceName(const char* value) { m_spaceNameHasBeenSet = true; m_spaceName.assign(value); } /** *

The name of the space.

*/ inline DevEnvironmentSessionSummary& WithSpaceName(const Aws::String& value) { SetSpaceName(value); return *this;} /** *

The name of the space.

*/ inline DevEnvironmentSessionSummary& WithSpaceName(Aws::String&& value) { SetSpaceName(std::move(value)); return *this;} /** *

The name of the space.

*/ inline DevEnvironmentSessionSummary& WithSpaceName(const char* value) { SetSpaceName(value); return *this;} /** *

The name of the project in the space.

*/ inline const Aws::String& GetProjectName() const{ return m_projectName; } /** *

The name of the project in the space.

*/ inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; } /** *

The name of the project in the space.

*/ inline void SetProjectName(const Aws::String& value) { m_projectNameHasBeenSet = true; m_projectName = value; } /** *

The name of the project in the space.

*/ inline void SetProjectName(Aws::String&& value) { m_projectNameHasBeenSet = true; m_projectName = std::move(value); } /** *

The name of the project in the space.

*/ inline void SetProjectName(const char* value) { m_projectNameHasBeenSet = true; m_projectName.assign(value); } /** *

The name of the project in the space.

*/ inline DevEnvironmentSessionSummary& WithProjectName(const Aws::String& value) { SetProjectName(value); return *this;} /** *

The name of the project in the space.

*/ inline DevEnvironmentSessionSummary& WithProjectName(Aws::String&& value) { SetProjectName(std::move(value)); return *this;} /** *

The name of the project in the space.

*/ inline DevEnvironmentSessionSummary& WithProjectName(const char* value) { SetProjectName(value); return *this;} /** *

The system-generated unique ID of the Dev Environment.

*/ inline const Aws::String& GetDevEnvironmentId() const{ return m_devEnvironmentId; } /** *

The system-generated unique ID of the Dev Environment.

*/ inline bool DevEnvironmentIdHasBeenSet() const { return m_devEnvironmentIdHasBeenSet; } /** *

The system-generated unique ID of the Dev Environment.

*/ inline void SetDevEnvironmentId(const Aws::String& value) { m_devEnvironmentIdHasBeenSet = true; m_devEnvironmentId = value; } /** *

The system-generated unique ID of the Dev Environment.

*/ inline void SetDevEnvironmentId(Aws::String&& value) { m_devEnvironmentIdHasBeenSet = true; m_devEnvironmentId = std::move(value); } /** *

The system-generated unique ID of the Dev Environment.

*/ inline void SetDevEnvironmentId(const char* value) { m_devEnvironmentIdHasBeenSet = true; m_devEnvironmentId.assign(value); } /** *

The system-generated unique ID of the Dev Environment.

*/ inline DevEnvironmentSessionSummary& WithDevEnvironmentId(const Aws::String& value) { SetDevEnvironmentId(value); return *this;} /** *

The system-generated unique ID of the Dev Environment.

*/ inline DevEnvironmentSessionSummary& WithDevEnvironmentId(Aws::String&& value) { SetDevEnvironmentId(std::move(value)); return *this;} /** *

The system-generated unique ID of the Dev Environment.

*/ inline DevEnvironmentSessionSummary& WithDevEnvironmentId(const char* value) { SetDevEnvironmentId(value); return *this;} /** *

The date and time the session started, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339

*/ inline const Aws::Utils::DateTime& GetStartedTime() const{ return m_startedTime; } /** *

The date and time the session started, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339

*/ inline bool StartedTimeHasBeenSet() const { return m_startedTimeHasBeenSet; } /** *

The date and time the session started, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339

*/ inline void SetStartedTime(const Aws::Utils::DateTime& value) { m_startedTimeHasBeenSet = true; m_startedTime = value; } /** *

The date and time the session started, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339

*/ inline void SetStartedTime(Aws::Utils::DateTime&& value) { m_startedTimeHasBeenSet = true; m_startedTime = std::move(value); } /** *

The date and time the session started, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339

*/ inline DevEnvironmentSessionSummary& WithStartedTime(const Aws::Utils::DateTime& value) { SetStartedTime(value); return *this;} /** *

The date and time the session started, in coordinated universal time (UTC) * timestamp format as specified in RFC 3339

*/ inline DevEnvironmentSessionSummary& WithStartedTime(Aws::Utils::DateTime&& value) { SetStartedTime(std::move(value)); return *this;} /** *

The system-generated unique ID of the Dev Environment session.

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

The system-generated unique ID of the Dev Environment session.

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

The system-generated unique ID of the Dev Environment session.

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

The system-generated unique ID of the Dev Environment session.

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

The system-generated unique ID of the Dev Environment session.

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

The system-generated unique ID of the Dev Environment session.

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

The system-generated unique ID of the Dev Environment session.

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

The system-generated unique ID of the Dev Environment session.

*/ inline DevEnvironmentSessionSummary& WithId(const char* value) { SetId(value); return *this;} private: Aws::String m_spaceName; bool m_spaceNameHasBeenSet = false; Aws::String m_projectName; bool m_projectNameHasBeenSet = false; Aws::String m_devEnvironmentId; bool m_devEnvironmentIdHasBeenSet = false; Aws::Utils::DateTime m_startedTime; bool m_startedTimeHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; }; } // namespace Model } // namespace CodeCatalyst } // namespace Aws