/** * 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 EMR { namespace Model { class GetClusterSessionCredentialsResult { public: AWS_EMR_API GetClusterSessionCredentialsResult(); AWS_EMR_API GetClusterSessionCredentialsResult(const Aws::AmazonWebServiceResult& result); AWS_EMR_API GetClusterSessionCredentialsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The credentials that you can use to connect to cluster endpoints that support * username and password authentication.

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

The credentials that you can use to connect to cluster endpoints that support * username and password authentication.

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

The credentials that you can use to connect to cluster endpoints that support * username and password authentication.

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

The credentials that you can use to connect to cluster endpoints that support * username and password authentication.

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

The credentials that you can use to connect to cluster endpoints that support * username and password authentication.

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

The time when the credentials that are returned by the * GetClusterSessionCredentials API expire.

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

The time when the credentials that are returned by the * GetClusterSessionCredentials API expire.

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

The time when the credentials that are returned by the * GetClusterSessionCredentials API expire.

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

The time when the credentials that are returned by the * GetClusterSessionCredentials API expire.

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

The time when the credentials that are returned by the * GetClusterSessionCredentials API expire.

*/ inline GetClusterSessionCredentialsResult& 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 GetClusterSessionCredentialsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetClusterSessionCredentialsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetClusterSessionCredentialsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Credentials m_credentials; Aws::Utils::DateTime m_expiresAt; Aws::String m_requestId; }; } // namespace Model } // namespace EMR } // namespace Aws