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

Contains the details of the started session.

See Also:

AWS * API Reference

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

Session token of the started session. This SessionToken is * required for every subsequent command that is issued during the current * session.

*/ inline const Aws::String& GetSessionToken() const{ return m_sessionToken; } /** *

Session token of the started session. This SessionToken is * required for every subsequent command that is issued during the current * session.

*/ inline bool SessionTokenHasBeenSet() const { return m_sessionTokenHasBeenSet; } /** *

Session token of the started session. This SessionToken is * required for every subsequent command that is issued during the current * session.

*/ inline void SetSessionToken(const Aws::String& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = value; } /** *

Session token of the started session. This SessionToken is * required for every subsequent command that is issued during the current * session.

*/ inline void SetSessionToken(Aws::String&& value) { m_sessionTokenHasBeenSet = true; m_sessionToken = std::move(value); } /** *

Session token of the started session. This SessionToken is * required for every subsequent command that is issued during the current * session.

*/ inline void SetSessionToken(const char* value) { m_sessionTokenHasBeenSet = true; m_sessionToken.assign(value); } /** *

Session token of the started session. This SessionToken is * required for every subsequent command that is issued during the current * session.

*/ inline StartSessionResult& WithSessionToken(const Aws::String& value) { SetSessionToken(value); return *this;} /** *

Session token of the started session. This SessionToken is * required for every subsequent command that is issued during the current * session.

*/ inline StartSessionResult& WithSessionToken(Aws::String&& value) { SetSessionToken(std::move(value)); return *this;} /** *

Session token of the started session. This SessionToken is * required for every subsequent command that is issued during the current * session.

*/ inline StartSessionResult& WithSessionToken(const char* value) { SetSessionToken(value); return *this;} /** *

Contains server-side performance information for the command.

*/ inline const TimingInformation& GetTimingInformation() const{ return m_timingInformation; } /** *

Contains server-side performance information for the command.

*/ inline bool TimingInformationHasBeenSet() const { return m_timingInformationHasBeenSet; } /** *

Contains server-side performance information for the command.

*/ inline void SetTimingInformation(const TimingInformation& value) { m_timingInformationHasBeenSet = true; m_timingInformation = value; } /** *

Contains server-side performance information for the command.

*/ inline void SetTimingInformation(TimingInformation&& value) { m_timingInformationHasBeenSet = true; m_timingInformation = std::move(value); } /** *

Contains server-side performance information for the command.

*/ inline StartSessionResult& WithTimingInformation(const TimingInformation& value) { SetTimingInformation(value); return *this;} /** *

Contains server-side performance information for the command.

*/ inline StartSessionResult& WithTimingInformation(TimingInformation&& value) { SetTimingInformation(std::move(value)); return *this;} private: Aws::String m_sessionToken; bool m_sessionTokenHasBeenSet = false; TimingInformation m_timingInformation; bool m_timingInformationHasBeenSet = false; }; } // namespace Model } // namespace QLDBSession } // namespace Aws