/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace EMRContainers { namespace Model { class GetManagedEndpointSessionCredentialsResult { public: AWS_EMRCONTAINERS_API GetManagedEndpointSessionCredentialsResult(); AWS_EMRCONTAINERS_API GetManagedEndpointSessionCredentialsResult(const Aws::AmazonWebServiceResult& result); AWS_EMRCONTAINERS_API GetManagedEndpointSessionCredentialsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The identifier of the session token returned.

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

The identifier of the session token returned.

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

The identifier of the session token returned.

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

The identifier of the session token returned.

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

The identifier of the session token returned.

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

The identifier of the session token returned.

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

The identifier of the session token returned.

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

The structure containing the session credentials.

*/ inline const Credentials& GetCredentials() const{ return m_credentials; } /** *

The structure containing the session credentials.

*/ inline void SetCredentials(const Credentials& value) { m_credentials = value; } /** *

The structure containing the session credentials.

*/ inline void SetCredentials(Credentials&& value) { m_credentials = std::move(value); } /** *

The structure containing the session credentials.

*/ inline GetManagedEndpointSessionCredentialsResult& WithCredentials(const Credentials& value) { SetCredentials(value); return *this;} /** *

The structure containing the session credentials.

*/ inline GetManagedEndpointSessionCredentialsResult& WithCredentials(Credentials&& value) { SetCredentials(std::move(value)); return *this;} /** *

The date and time when the session token will expire.

*/ inline const Aws::Utils::DateTime& GetExpiresAt() const{ return m_expiresAt; } /** *

The date and time when the session token will expire.

*/ inline void SetExpiresAt(const Aws::Utils::DateTime& value) { m_expiresAt = value; } /** *

The date and time when the session token will expire.

*/ inline void SetExpiresAt(Aws::Utils::DateTime&& value) { m_expiresAt = std::move(value); } /** *

The date and time when the session token will expire.

*/ inline GetManagedEndpointSessionCredentialsResult& WithExpiresAt(const Aws::Utils::DateTime& value) { SetExpiresAt(value); return *this;} /** *

The date and time when the session token will expire.

*/ inline GetManagedEndpointSessionCredentialsResult& WithExpiresAt(Aws::Utils::DateTime&& value) { SetExpiresAt(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetManagedEndpointSessionCredentialsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetManagedEndpointSessionCredentialsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetManagedEndpointSessionCredentialsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_id; Credentials m_credentials; Aws::Utils::DateTime m_expiresAt; Aws::String m_requestId; }; } // namespace Model } // namespace EMRContainers } // namespace Aws