This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-macie2/include/aws/macie2/model/SessionContextAttributes.h

114 lines
3.5 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/macie2/Macie2_EXPORTS.h>
#include <aws/core/utils/DateTime.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Macie2
{
namespace Model
{
/**
* <p>Provides information about the context in which temporary security
* credentials were issued to an entity.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/SessionContextAttributes">AWS
* API Reference</a></p>
*/
class AWS_MACIE2_API SessionContextAttributes
{
public:
SessionContextAttributes();
SessionContextAttributes(Aws::Utils::Json::JsonView jsonValue);
SessionContextAttributes& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The date and time, in UTC and ISO 8601 format, when the credentials were
* issued.</p>
*/
inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
/**
* <p>The date and time, in UTC and ISO 8601 format, when the credentials were
* issued.</p>
*/
inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
/**
* <p>The date and time, in UTC and ISO 8601 format, when the credentials were
* issued.</p>
*/
inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
/**
* <p>The date and time, in UTC and ISO 8601 format, when the credentials were
* issued.</p>
*/
inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
/**
* <p>The date and time, in UTC and ISO 8601 format, when the credentials were
* issued.</p>
*/
inline SessionContextAttributes& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
/**
* <p>The date and time, in UTC and ISO 8601 format, when the credentials were
* issued.</p>
*/
inline SessionContextAttributes& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
/**
* <p>Specifies whether the credentials were authenticated with a multi-factor
* authentication (MFA) device.</p>
*/
inline bool GetMfaAuthenticated() const{ return m_mfaAuthenticated; }
/**
* <p>Specifies whether the credentials were authenticated with a multi-factor
* authentication (MFA) device.</p>
*/
inline bool MfaAuthenticatedHasBeenSet() const { return m_mfaAuthenticatedHasBeenSet; }
/**
* <p>Specifies whether the credentials were authenticated with a multi-factor
* authentication (MFA) device.</p>
*/
inline void SetMfaAuthenticated(bool value) { m_mfaAuthenticatedHasBeenSet = true; m_mfaAuthenticated = value; }
/**
* <p>Specifies whether the credentials were authenticated with a multi-factor
* authentication (MFA) device.</p>
*/
inline SessionContextAttributes& WithMfaAuthenticated(bool value) { SetMfaAuthenticated(value); return *this;}
private:
Aws::Utils::DateTime m_creationDate;
bool m_creationDateHasBeenSet;
bool m_mfaAuthenticated;
bool m_mfaAuthenticatedHasBeenSet;
};
} // namespace Model
} // namespace Macie2
} // namespace Aws