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

Summary information about a service.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The date and time that the service was created, specified in ISO-8601 * format.

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

The date and time that the service was created, specified in ISO-8601 * format.

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

The date and time that the service was created, specified in ISO-8601 * format.

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

The date and time that the service was created, specified in ISO-8601 * format.

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

The date and time that the service was created, specified in ISO-8601 * format.

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

The date and time that the service was created, specified in ISO-8601 * format.

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

The custom domain name of the service.

*/ inline const Aws::String& GetCustomDomainName() const{ return m_customDomainName; } /** *

The custom domain name of the service.

*/ inline bool CustomDomainNameHasBeenSet() const { return m_customDomainNameHasBeenSet; } /** *

The custom domain name of the service.

*/ inline void SetCustomDomainName(const Aws::String& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = value; } /** *

The custom domain name of the service.

*/ inline void SetCustomDomainName(Aws::String&& value) { m_customDomainNameHasBeenSet = true; m_customDomainName = std::move(value); } /** *

The custom domain name of the service.

*/ inline void SetCustomDomainName(const char* value) { m_customDomainNameHasBeenSet = true; m_customDomainName.assign(value); } /** *

The custom domain name of the service.

*/ inline ServiceSummary& WithCustomDomainName(const Aws::String& value) { SetCustomDomainName(value); return *this;} /** *

The custom domain name of the service.

*/ inline ServiceSummary& WithCustomDomainName(Aws::String&& value) { SetCustomDomainName(std::move(value)); return *this;} /** *

The custom domain name of the service.

*/ inline ServiceSummary& WithCustomDomainName(const char* value) { SetCustomDomainName(value); return *this;} /** *

DNS information about the service.

*/ inline const DnsEntry& GetDnsEntry() const{ return m_dnsEntry; } /** *

DNS information about the service.

*/ inline bool DnsEntryHasBeenSet() const { return m_dnsEntryHasBeenSet; } /** *

DNS information about the service.

*/ inline void SetDnsEntry(const DnsEntry& value) { m_dnsEntryHasBeenSet = true; m_dnsEntry = value; } /** *

DNS information about the service.

*/ inline void SetDnsEntry(DnsEntry&& value) { m_dnsEntryHasBeenSet = true; m_dnsEntry = std::move(value); } /** *

DNS information about the service.

*/ inline ServiceSummary& WithDnsEntry(const DnsEntry& value) { SetDnsEntry(value); return *this;} /** *

DNS information about the service.

*/ inline ServiceSummary& WithDnsEntry(DnsEntry&& value) { SetDnsEntry(std::move(value)); return *this;} /** *

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The date and time that the service was last updated. The format is * ISO-8601.

*/ inline const Aws::Utils::DateTime& GetLastUpdatedAt() const{ return m_lastUpdatedAt; } /** *

The date and time that the service was last updated. The format is * ISO-8601.

*/ inline bool LastUpdatedAtHasBeenSet() const { return m_lastUpdatedAtHasBeenSet; } /** *

The date and time that the service was last updated. The format is * ISO-8601.

*/ inline void SetLastUpdatedAt(const Aws::Utils::DateTime& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = value; } /** *

The date and time that the service was last updated. The format is * ISO-8601.

*/ inline void SetLastUpdatedAt(Aws::Utils::DateTime&& value) { m_lastUpdatedAtHasBeenSet = true; m_lastUpdatedAt = std::move(value); } /** *

The date and time that the service was last updated. The format is * ISO-8601.

*/ inline ServiceSummary& WithLastUpdatedAt(const Aws::Utils::DateTime& value) { SetLastUpdatedAt(value); return *this;} /** *

The date and time that the service was last updated. The format is * ISO-8601.

*/ inline ServiceSummary& WithLastUpdatedAt(Aws::Utils::DateTime&& value) { SetLastUpdatedAt(std::move(value)); return *this;} /** *

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The status.

*/ inline const ServiceStatus& GetStatus() const{ return m_status; } /** *

The status.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status.

*/ inline void SetStatus(const ServiceStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status.

*/ inline void SetStatus(ServiceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status.

*/ inline ServiceSummary& WithStatus(const ServiceStatus& value) { SetStatus(value); return *this;} /** *

The status.

*/ inline ServiceSummary& WithStatus(ServiceStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::String m_customDomainName; bool m_customDomainNameHasBeenSet = false; DnsEntry m_dnsEntry; bool m_dnsEntryHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedAt; bool m_lastUpdatedAtHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ServiceStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws