/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a policy version.See Also:
AWS
* API Reference
The policy version ID.
*/ inline const Aws::String& GetVersionId() const{ return m_versionId; } /** *The policy version ID.
*/ inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; } /** *The policy version ID.
*/ inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; } /** *The policy version ID.
*/ inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); } /** *The policy version ID.
*/ inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); } /** *The policy version ID.
*/ inline PolicyVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;} /** *The policy version ID.
*/ inline PolicyVersion& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;} /** *The policy version ID.
*/ inline PolicyVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;} /** *Specifies whether the policy version is the default.
*/ inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; } /** *Specifies whether the policy version is the default.
*/ inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; } /** *Specifies whether the policy version is the default.
*/ inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; } /** *Specifies whether the policy version is the default.
*/ inline PolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;} /** *The date and time the policy was created.
*/ inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; } /** *The date and time the policy was created.
*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *The date and time the policy was created.
*/ inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *The date and time the policy was created.
*/ inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *The date and time the policy was created.
*/ inline PolicyVersion& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;} /** *The date and time the policy was created.
*/ inline PolicyVersion& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} private: Aws::String m_versionId; bool m_versionIdHasBeenSet = false; bool m_isDefaultVersion; bool m_isDefaultVersionHasBeenSet = false; Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; }; } // namespace Model } // namespace IoT } // namespace Aws