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

Specifies a request to start a new session.

See Also:

AWS * API Reference

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

The name of the ledger to start a new session against.

*/ inline const Aws::String& GetLedgerName() const{ return m_ledgerName; } /** *

The name of the ledger to start a new session against.

*/ inline bool LedgerNameHasBeenSet() const { return m_ledgerNameHasBeenSet; } /** *

The name of the ledger to start a new session against.

*/ inline void SetLedgerName(const Aws::String& value) { m_ledgerNameHasBeenSet = true; m_ledgerName = value; } /** *

The name of the ledger to start a new session against.

*/ inline void SetLedgerName(Aws::String&& value) { m_ledgerNameHasBeenSet = true; m_ledgerName = std::move(value); } /** *

The name of the ledger to start a new session against.

*/ inline void SetLedgerName(const char* value) { m_ledgerNameHasBeenSet = true; m_ledgerName.assign(value); } /** *

The name of the ledger to start a new session against.

*/ inline StartSessionRequest& WithLedgerName(const Aws::String& value) { SetLedgerName(value); return *this;} /** *

The name of the ledger to start a new session against.

*/ inline StartSessionRequest& WithLedgerName(Aws::String&& value) { SetLedgerName(std::move(value)); return *this;} /** *

The name of the ledger to start a new session against.

*/ inline StartSessionRequest& WithLedgerName(const char* value) { SetLedgerName(value); return *this;} private: Aws::String m_ledgerName; bool m_ledgerNameHasBeenSet = false; }; } // namespace Model } // namespace QLDBSession } // namespace Aws