/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ServiceDiscovery { namespace Model { /** *

A complex type that contains information about a namespace.

See * Also:

AWS * API Reference

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

The ID of the namespace.

*/ inline const Aws::String& GetId() const{ return m_id; } /** *

The ID of the namespace.

*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *

The ID of the namespace.

*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *

The ID of the namespace.

*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *

The ID of the namespace.

*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *

The ID of the namespace.

*/ inline NamespaceSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** *

The ID of the namespace.

*/ inline NamespaceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *

The ID of the namespace.

*/ inline NamespaceSummary& WithId(const char* value) { SetId(value); return *this;} /** *

The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when * you create it.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when * you create it.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when * you create it.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when * you create it.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when * you create it.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when * you create it.

*/ inline NamespaceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when * you create it.

*/ inline NamespaceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) that Cloud Map assigns to the namespace when * you create it.

*/ inline NamespaceSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the namespace. When you create a namespace, Cloud Map * automatically creates a Route 53 hosted zone that has the same name as the * namespace.

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

The name of the namespace. When you create a namespace, Cloud Map * automatically creates a Route 53 hosted zone that has the same name as the * namespace.

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

The name of the namespace. When you create a namespace, Cloud Map * automatically creates a Route 53 hosted zone that has the same name as the * namespace.

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

The name of the namespace. When you create a namespace, Cloud Map * automatically creates a Route 53 hosted zone that has the same name as the * namespace.

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

The name of the namespace. When you create a namespace, Cloud Map * automatically creates a Route 53 hosted zone that has the same name as the * namespace.

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

The name of the namespace. When you create a namespace, Cloud Map * automatically creates a Route 53 hosted zone that has the same name as the * namespace.

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

The name of the namespace. When you create a namespace, Cloud Map * automatically creates a Route 53 hosted zone that has the same name as the * namespace.

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

The name of the namespace. When you create a namespace, Cloud Map * automatically creates a Route 53 hosted zone that has the same name as the * namespace.

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

The type of the namespace, either public or private.

*/ inline const NamespaceType& GetType() const{ return m_type; } /** *

The type of the namespace, either public or private.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of the namespace, either public or private.

*/ inline void SetType(const NamespaceType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of the namespace, either public or private.

*/ inline void SetType(NamespaceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of the namespace, either public or private.

*/ inline NamespaceSummary& WithType(const NamespaceType& value) { SetType(value); return *this;} /** *

The type of the namespace, either public or private.

*/ inline NamespaceSummary& WithType(NamespaceType&& value) { SetType(std::move(value)); return *this;} /** *

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

A description for the namespace.

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

The number of services that were created using the namespace.

*/ inline int GetServiceCount() const{ return m_serviceCount; } /** *

The number of services that were created using the namespace.

*/ inline bool ServiceCountHasBeenSet() const { return m_serviceCountHasBeenSet; } /** *

The number of services that were created using the namespace.

*/ inline void SetServiceCount(int value) { m_serviceCountHasBeenSet = true; m_serviceCount = value; } /** *

The number of services that were created using the namespace.

*/ inline NamespaceSummary& WithServiceCount(int value) { SetServiceCount(value); return *this;} /** *

The properties of the namespace.

*/ inline const NamespaceProperties& GetProperties() const{ return m_properties; } /** *

The properties of the namespace.

*/ inline bool PropertiesHasBeenSet() const { return m_propertiesHasBeenSet; } /** *

The properties of the namespace.

*/ inline void SetProperties(const NamespaceProperties& value) { m_propertiesHasBeenSet = true; m_properties = value; } /** *

The properties of the namespace.

*/ inline void SetProperties(NamespaceProperties&& value) { m_propertiesHasBeenSet = true; m_properties = std::move(value); } /** *

The properties of the namespace.

*/ inline NamespaceSummary& WithProperties(const NamespaceProperties& value) { SetProperties(value); return *this;} /** *

The properties of the namespace.

*/ inline NamespaceSummary& WithProperties(NamespaceProperties&& value) { SetProperties(std::move(value)); return *this;} /** *

The date and time that the namespace was created.

*/ inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; } /** *

The date and time that the namespace was created.

*/ inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; } /** *

The date and time that the namespace was created.

*/ inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; } /** *

The date and time that the namespace was created.

*/ inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); } /** *

The date and time that the namespace was created.

*/ inline NamespaceSummary& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;} /** *

The date and time that the namespace was created.

*/ inline NamespaceSummary& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; NamespaceType m_type; bool m_typeHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; int m_serviceCount; bool m_serviceCountHasBeenSet = false; NamespaceProperties m_properties; bool m_propertiesHasBeenSet = false; Aws::Utils::DateTime m_createDate; bool m_createDateHasBeenSet = false; }; } // namespace Model } // namespace ServiceDiscovery } // namespace Aws