/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace IoT { namespace Model { class DescribeProvisioningTemplateVersionResult { public: AWS_IOT_API DescribeProvisioningTemplateVersionResult(); AWS_IOT_API DescribeProvisioningTemplateVersionResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API DescribeProvisioningTemplateVersionResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The provisioning template version ID.

*/ inline int GetVersionId() const{ return m_versionId; } /** *

The provisioning template version ID.

*/ inline void SetVersionId(int value) { m_versionId = value; } /** *

The provisioning template version ID.

*/ inline DescribeProvisioningTemplateVersionResult& WithVersionId(int value) { SetVersionId(value); return *this;} /** *

The date when the provisioning template version was created.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The date when the provisioning template version was created.

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

The date when the provisioning template version was created.

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

The date when the provisioning template version was created.

*/ inline DescribeProvisioningTemplateVersionResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date when the provisioning template version was created.

*/ inline DescribeProvisioningTemplateVersionResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The JSON formatted contents of the provisioning template version.

*/ inline const Aws::String& GetTemplateBody() const{ return m_templateBody; } /** *

The JSON formatted contents of the provisioning template version.

*/ inline void SetTemplateBody(const Aws::String& value) { m_templateBody = value; } /** *

The JSON formatted contents of the provisioning template version.

*/ inline void SetTemplateBody(Aws::String&& value) { m_templateBody = std::move(value); } /** *

The JSON formatted contents of the provisioning template version.

*/ inline void SetTemplateBody(const char* value) { m_templateBody.assign(value); } /** *

The JSON formatted contents of the provisioning template version.

*/ inline DescribeProvisioningTemplateVersionResult& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;} /** *

The JSON formatted contents of the provisioning template version.

*/ inline DescribeProvisioningTemplateVersionResult& WithTemplateBody(Aws::String&& value) { SetTemplateBody(std::move(value)); return *this;} /** *

The JSON formatted contents of the provisioning template version.

*/ inline DescribeProvisioningTemplateVersionResult& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;} /** *

True if the provisioning template version is the default version.

*/ inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; } /** *

True if the provisioning template version is the default version.

*/ inline void SetIsDefaultVersion(bool value) { m_isDefaultVersion = value; } /** *

True if the provisioning template version is the default version.

*/ inline DescribeProvisioningTemplateVersionResult& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(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 DescribeProvisioningTemplateVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeProvisioningTemplateVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeProvisioningTemplateVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: int m_versionId; Aws::Utils::DateTime m_creationDate; Aws::String m_templateBody; bool m_isDefaultVersion; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws