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

Describes a site.

See Also:

AWS * API Reference

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

The ID of the site.

*/ inline const Aws::String& GetSiteId() const{ return m_siteId; } /** *

The ID of the site.

*/ inline bool SiteIdHasBeenSet() const { return m_siteIdHasBeenSet; } /** *

The ID of the site.

*/ inline void SetSiteId(const Aws::String& value) { m_siteIdHasBeenSet = true; m_siteId = value; } /** *

The ID of the site.

*/ inline void SetSiteId(Aws::String&& value) { m_siteIdHasBeenSet = true; m_siteId = std::move(value); } /** *

The ID of the site.

*/ inline void SetSiteId(const char* value) { m_siteIdHasBeenSet = true; m_siteId.assign(value); } /** *

The ID of the site.

*/ inline Site& WithSiteId(const Aws::String& value) { SetSiteId(value); return *this;} /** *

The ID of the site.

*/ inline Site& WithSiteId(Aws::String&& value) { SetSiteId(std::move(value)); return *this;} /** *

The ID of the site.

*/ inline Site& WithSiteId(const char* value) { SetSiteId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the site.

*/ inline const Aws::String& GetSiteArn() const{ return m_siteArn; } /** *

The Amazon Resource Name (ARN) of the site.

*/ inline bool SiteArnHasBeenSet() const { return m_siteArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the site.

*/ inline void SetSiteArn(const Aws::String& value) { m_siteArnHasBeenSet = true; m_siteArn = value; } /** *

The Amazon Resource Name (ARN) of the site.

*/ inline void SetSiteArn(Aws::String&& value) { m_siteArnHasBeenSet = true; m_siteArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the site.

*/ inline void SetSiteArn(const char* value) { m_siteArnHasBeenSet = true; m_siteArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the site.

*/ inline Site& WithSiteArn(const Aws::String& value) { SetSiteArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the site.

*/ inline Site& WithSiteArn(Aws::String&& value) { SetSiteArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the site.

*/ inline Site& WithSiteArn(const char* value) { SetSiteArn(value); return *this;} /** *

The ID of the global network.

*/ inline const Aws::String& GetGlobalNetworkId() const{ return m_globalNetworkId; } /** *

The ID of the global network.

*/ inline bool GlobalNetworkIdHasBeenSet() const { return m_globalNetworkIdHasBeenSet; } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(const Aws::String& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = value; } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(Aws::String&& value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId = std::move(value); } /** *

The ID of the global network.

*/ inline void SetGlobalNetworkId(const char* value) { m_globalNetworkIdHasBeenSet = true; m_globalNetworkId.assign(value); } /** *

The ID of the global network.

*/ inline Site& WithGlobalNetworkId(const Aws::String& value) { SetGlobalNetworkId(value); return *this;} /** *

The ID of the global network.

*/ inline Site& WithGlobalNetworkId(Aws::String&& value) { SetGlobalNetworkId(std::move(value)); return *this;} /** *

The ID of the global network.

*/ inline Site& WithGlobalNetworkId(const char* value) { SetGlobalNetworkId(value); return *this;} /** *

The description of the site.

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

The description of the site.

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

The description of the site.

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

The description of the site.

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

The description of the site.

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

The description of the site.

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

The description of the site.

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

The description of the site.

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

The location of the site.

*/ inline const Location& GetLocation() const{ return m_location; } /** *

The location of the site.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The location of the site.

*/ inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The location of the site.

*/ inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The location of the site.

*/ inline Site& WithLocation(const Location& value) { SetLocation(value); return *this;} /** *

The location of the site.

*/ inline Site& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;} /** *

The date and time that the site was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The date and time that the site was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The date and time that the site was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The date and time that the site was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The date and time that the site was created.

*/ inline Site& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The date and time that the site was created.

*/ inline Site& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} /** *

The state of the site.

*/ inline const SiteState& GetState() const{ return m_state; } /** *

The state of the site.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the site.

*/ inline void SetState(const SiteState& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the site.

*/ inline void SetState(SiteState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the site.

*/ inline Site& WithState(const SiteState& value) { SetState(value); return *this;} /** *

The state of the site.

*/ inline Site& WithState(SiteState&& value) { SetState(std::move(value)); return *this;} /** *

The tags for the site.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The tags for the site.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags for the site.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags for the site.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags for the site.

*/ inline Site& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The tags for the site.

*/ inline Site& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The tags for the site.

*/ inline Site& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The tags for the site.

*/ inline Site& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_siteId; bool m_siteIdHasBeenSet = false; Aws::String m_siteArn; bool m_siteArnHasBeenSet = false; Aws::String m_globalNetworkId; bool m_globalNetworkIdHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Location m_location; bool m_locationHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; SiteState m_state; bool m_stateHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws