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

Provides information about a session that was created for an entity that * performed an action by using temporary security credentials.

See * Also:

AWS * API Reference

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

The date and time when the credentials were issued, and whether the * credentials were authenticated with a multi-factor authentication (MFA) * device.

*/ inline const SessionContextAttributes& GetAttributes() const{ return m_attributes; } /** *

The date and time when the credentials were issued, and whether the * credentials were authenticated with a multi-factor authentication (MFA) * device.

*/ inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; } /** *

The date and time when the credentials were issued, and whether the * credentials were authenticated with a multi-factor authentication (MFA) * device.

*/ inline void SetAttributes(const SessionContextAttributes& value) { m_attributesHasBeenSet = true; m_attributes = value; } /** *

The date and time when the credentials were issued, and whether the * credentials were authenticated with a multi-factor authentication (MFA) * device.

*/ inline void SetAttributes(SessionContextAttributes&& value) { m_attributesHasBeenSet = true; m_attributes = std::move(value); } /** *

The date and time when the credentials were issued, and whether the * credentials were authenticated with a multi-factor authentication (MFA) * device.

*/ inline SessionContext& WithAttributes(const SessionContextAttributes& value) { SetAttributes(value); return *this;} /** *

The date and time when the credentials were issued, and whether the * credentials were authenticated with a multi-factor authentication (MFA) * device.

*/ inline SessionContext& WithAttributes(SessionContextAttributes&& value) { SetAttributes(std::move(value)); return *this;} /** *

The source and type of credentials that were issued to the entity.

*/ inline const SessionIssuer& GetSessionIssuer() const{ return m_sessionIssuer; } /** *

The source and type of credentials that were issued to the entity.

*/ inline bool SessionIssuerHasBeenSet() const { return m_sessionIssuerHasBeenSet; } /** *

The source and type of credentials that were issued to the entity.

*/ inline void SetSessionIssuer(const SessionIssuer& value) { m_sessionIssuerHasBeenSet = true; m_sessionIssuer = value; } /** *

The source and type of credentials that were issued to the entity.

*/ inline void SetSessionIssuer(SessionIssuer&& value) { m_sessionIssuerHasBeenSet = true; m_sessionIssuer = std::move(value); } /** *

The source and type of credentials that were issued to the entity.

*/ inline SessionContext& WithSessionIssuer(const SessionIssuer& value) { SetSessionIssuer(value); return *this;} /** *

The source and type of credentials that were issued to the entity.

*/ inline SessionContext& WithSessionIssuer(SessionIssuer&& value) { SetSessionIssuer(std::move(value)); return *this;} private: SessionContextAttributes m_attributes; bool m_attributesHasBeenSet = false; SessionIssuer m_sessionIssuer; bool m_sessionIssuerHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws