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

Provides information about an intent.

See Also:

AWS * API Reference

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

The name of the intent.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the intent.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the intent.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the intent.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the intent.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the intent.

*/ inline IntentMetadata& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the intent.

*/ inline IntentMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the intent.

*/ inline IntentMetadata& WithName(const char* value) { SetName(value); return *this;} /** *

A description of the intent.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the intent.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the intent.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the intent.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the intent.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the intent.

*/ inline IntentMetadata& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the intent.

*/ inline IntentMetadata& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the intent.

*/ inline IntentMetadata& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The date that the intent was updated. When you create an intent, the creation * date and last updated date are the same.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedDate() const{ return m_lastUpdatedDate; } /** *

The date that the intent was updated. When you create an intent, the creation * date and last updated date are the same.

*/ inline bool LastUpdatedDateHasBeenSet() const { return m_lastUpdatedDateHasBeenSet; } /** *

The date that the intent was updated. When you create an intent, the creation * date and last updated date are the same.

*/ inline void SetLastUpdatedDate(const Aws::Utils::DateTime& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = value; } /** *

The date that the intent was updated. When you create an intent, the creation * date and last updated date are the same.

*/ inline void SetLastUpdatedDate(Aws::Utils::DateTime&& value) { m_lastUpdatedDateHasBeenSet = true; m_lastUpdatedDate = std::move(value); } /** *

The date that the intent was updated. When you create an intent, the creation * date and last updated date are the same.

*/ inline IntentMetadata& WithLastUpdatedDate(const Aws::Utils::DateTime& value) { SetLastUpdatedDate(value); return *this;} /** *

The date that the intent was updated. When you create an intent, the creation * date and last updated date are the same.

*/ inline IntentMetadata& WithLastUpdatedDate(Aws::Utils::DateTime&& value) { SetLastUpdatedDate(std::move(value)); return *this;} /** *

The date that the intent was created.

*/ inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; } /** *

The date that the intent was created.

*/ inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; } /** *

The date that the intent was created.

*/ inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; } /** *

The date that the intent was created.

*/ inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); } /** *

The date that the intent was created.

*/ inline IntentMetadata& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;} /** *

The date that the intent was created.

*/ inline IntentMetadata& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;} /** *

The version of the intent.

*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *

The version of the intent.

*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *

The version of the intent.

*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *

The version of the intent.

*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *

The version of the intent.

*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *

The version of the intent.

*/ inline IntentMetadata& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *

The version of the intent.

*/ inline IntentMetadata& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *

The version of the intent.

*/ inline IntentMetadata& WithVersion(const char* value) { SetVersion(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedDate; bool m_lastUpdatedDateHasBeenSet = false; Aws::Utils::DateTime m_createdDate; bool m_createdDateHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; }; } // namespace Model } // namespace LexModelBuildingService } // namespace Aws