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

The structure containing the session token being returned.

See * Also:

AWS * API Reference

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

The actual session token being returned.

*/ inline const Aws::String& GetToken() const{ return m_token; } /** *

The actual session token being returned.

*/ inline bool TokenHasBeenSet() const { return m_tokenHasBeenSet; } /** *

The actual session token being returned.

*/ inline void SetToken(const Aws::String& value) { m_tokenHasBeenSet = true; m_token = value; } /** *

The actual session token being returned.

*/ inline void SetToken(Aws::String&& value) { m_tokenHasBeenSet = true; m_token = std::move(value); } /** *

The actual session token being returned.

*/ inline void SetToken(const char* value) { m_tokenHasBeenSet = true; m_token.assign(value); } /** *

The actual session token being returned.

*/ inline Credentials& WithToken(const Aws::String& value) { SetToken(value); return *this;} /** *

The actual session token being returned.

*/ inline Credentials& WithToken(Aws::String&& value) { SetToken(std::move(value)); return *this;} /** *

The actual session token being returned.

*/ inline Credentials& WithToken(const char* value) { SetToken(value); return *this;} private: Aws::String m_token; bool m_tokenHasBeenSet = false; }; } // namespace Model } // namespace EMRContainers } // namespace Aws