/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Provides information about the context in which temporary security
* credentials were issued to an entity.See Also:
AWS
* API Reference
The date and time, in UTC and ISO 8601 format, when the credentials were * issued.
*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *The date and time, in UTC and ISO 8601 format, when the credentials were * issued.
*/ inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; } /** *The date and time, in UTC and ISO 8601 format, when the credentials were * issued.
*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; } /** *The date and time, in UTC and ISO 8601 format, when the credentials were * issued.
*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); } /** *The date and time, in UTC and ISO 8601 format, when the credentials were * issued.
*/ inline SessionContextAttributes& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *The date and time, in UTC and ISO 8601 format, when the credentials were * issued.
*/ inline SessionContextAttributes& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *Specifies whether the credentials were authenticated with a multi-factor * authentication (MFA) device.
*/ inline bool GetMfaAuthenticated() const{ return m_mfaAuthenticated; } /** *Specifies whether the credentials were authenticated with a multi-factor * authentication (MFA) device.
*/ inline bool MfaAuthenticatedHasBeenSet() const { return m_mfaAuthenticatedHasBeenSet; } /** *Specifies whether the credentials were authenticated with a multi-factor * authentication (MFA) device.
*/ inline void SetMfaAuthenticated(bool value) { m_mfaAuthenticatedHasBeenSet = true; m_mfaAuthenticated = value; } /** *Specifies whether the credentials were authenticated with a multi-factor * authentication (MFA) device.
*/ inline SessionContextAttributes& WithMfaAuthenticated(bool value) { SetMfaAuthenticated(value); return *this;} private: Aws::Utils::DateTime m_creationDate; bool m_creationDateHasBeenSet = false; bool m_mfaAuthenticated; bool m_mfaAuthenticatedHasBeenSet = false; }; } // namespace Model } // namespace Macie2 } // namespace Aws