/** * 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 the association between a service network and a * service.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

The Amazon Resource Name (ARN) of the association.

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

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

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

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

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

The date and time that the association 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 association 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 association was created, specified in ISO-8601 * format.

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

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

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

The account that created the association.

*/ inline const Aws::String& GetCreatedBy() const{ return m_createdBy; } /** *

The account that created the association.

*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *

The account that created the association.

*/ inline void SetCreatedBy(const Aws::String& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *

The account that created the association.

*/ inline void SetCreatedBy(Aws::String&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *

The account that created the association.

*/ inline void SetCreatedBy(const char* value) { m_createdByHasBeenSet = true; m_createdBy.assign(value); } /** *

The account that created the association.

*/ inline ServiceNetworkServiceAssociationSummary& WithCreatedBy(const Aws::String& value) { SetCreatedBy(value); return *this;} /** *

The account that created the association.

*/ inline ServiceNetworkServiceAssociationSummary& WithCreatedBy(Aws::String&& value) { SetCreatedBy(std::move(value)); return *this;} /** *

The account that created the association.

*/ inline ServiceNetworkServiceAssociationSummary& WithCreatedBy(const char* value) { SetCreatedBy(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 ServiceNetworkServiceAssociationSummary& WithCustomDomainName(const Aws::String& value) { SetCustomDomainName(value); return *this;} /** *

The custom domain name of the service.

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

The custom domain name of the service.

*/ inline ServiceNetworkServiceAssociationSummary& 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 ServiceNetworkServiceAssociationSummary& WithDnsEntry(const DnsEntry& value) { SetDnsEntry(value); return *this;} /** *

DNS information about the service.

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

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The ID of the association.

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

The Amazon Resource Name (ARN) of the service.

*/ inline const Aws::String& GetServiceArn() const{ return m_serviceArn; } /** *

The Amazon Resource Name (ARN) of the service.

*/ inline bool ServiceArnHasBeenSet() const { return m_serviceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceArn(const Aws::String& value) { m_serviceArnHasBeenSet = true; m_serviceArn = value; } /** *

The Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceArn(Aws::String&& value) { m_serviceArnHasBeenSet = true; m_serviceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the service.

*/ inline void SetServiceArn(const char* value) { m_serviceArnHasBeenSet = true; m_serviceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the service.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceArn(const Aws::String& value) { SetServiceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the service.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceArn(Aws::String&& value) { SetServiceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the service.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceArn(const char* value) { SetServiceArn(value); return *this;} /** *

The ID of the service.

*/ inline const Aws::String& GetServiceId() const{ return m_serviceId; } /** *

The ID of the service.

*/ inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; } /** *

The ID of the service.

*/ inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; } /** *

The ID of the service.

*/ inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); } /** *

The ID of the service.

*/ inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); } /** *

The ID of the service.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;} /** *

The ID of the service.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;} /** *

The ID of the service.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceId(const char* value) { SetServiceId(value); return *this;} /** *

The name of the service.

*/ inline const Aws::String& GetServiceName() const{ return m_serviceName; } /** *

The name of the service.

*/ inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; } /** *

The name of the service.

*/ inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; } /** *

The name of the service.

*/ inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); } /** *

The name of the service.

*/ inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); } /** *

The name of the service.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;} /** *

The name of the service.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;} /** *

The name of the service.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceName(const char* value) { SetServiceName(value); return *this;} /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline const Aws::String& GetServiceNetworkArn() const{ return m_serviceNetworkArn; } /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline bool ServiceNetworkArnHasBeenSet() const { return m_serviceNetworkArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline void SetServiceNetworkArn(const Aws::String& value) { m_serviceNetworkArnHasBeenSet = true; m_serviceNetworkArn = value; } /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline void SetServiceNetworkArn(Aws::String&& value) { m_serviceNetworkArnHasBeenSet = true; m_serviceNetworkArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline void SetServiceNetworkArn(const char* value) { m_serviceNetworkArnHasBeenSet = true; m_serviceNetworkArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceNetworkArn(const Aws::String& value) { SetServiceNetworkArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceNetworkArn(Aws::String&& value) { SetServiceNetworkArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the service network.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceNetworkArn(const char* value) { SetServiceNetworkArn(value); return *this;} /** *

The ID of the service network.

*/ inline const Aws::String& GetServiceNetworkId() const{ return m_serviceNetworkId; } /** *

The ID of the service network.

*/ inline bool ServiceNetworkIdHasBeenSet() const { return m_serviceNetworkIdHasBeenSet; } /** *

The ID of the service network.

*/ inline void SetServiceNetworkId(const Aws::String& value) { m_serviceNetworkIdHasBeenSet = true; m_serviceNetworkId = value; } /** *

The ID of the service network.

*/ inline void SetServiceNetworkId(Aws::String&& value) { m_serviceNetworkIdHasBeenSet = true; m_serviceNetworkId = std::move(value); } /** *

The ID of the service network.

*/ inline void SetServiceNetworkId(const char* value) { m_serviceNetworkIdHasBeenSet = true; m_serviceNetworkId.assign(value); } /** *

The ID of the service network.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceNetworkId(const Aws::String& value) { SetServiceNetworkId(value); return *this;} /** *

The ID of the service network.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceNetworkId(Aws::String&& value) { SetServiceNetworkId(std::move(value)); return *this;} /** *

The ID of the service network.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceNetworkId(const char* value) { SetServiceNetworkId(value); return *this;} /** *

The name of the service network.

*/ inline const Aws::String& GetServiceNetworkName() const{ return m_serviceNetworkName; } /** *

The name of the service network.

*/ inline bool ServiceNetworkNameHasBeenSet() const { return m_serviceNetworkNameHasBeenSet; } /** *

The name of the service network.

*/ inline void SetServiceNetworkName(const Aws::String& value) { m_serviceNetworkNameHasBeenSet = true; m_serviceNetworkName = value; } /** *

The name of the service network.

*/ inline void SetServiceNetworkName(Aws::String&& value) { m_serviceNetworkNameHasBeenSet = true; m_serviceNetworkName = std::move(value); } /** *

The name of the service network.

*/ inline void SetServiceNetworkName(const char* value) { m_serviceNetworkNameHasBeenSet = true; m_serviceNetworkName.assign(value); } /** *

The name of the service network.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceNetworkName(const Aws::String& value) { SetServiceNetworkName(value); return *this;} /** *

The name of the service network.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceNetworkName(Aws::String&& value) { SetServiceNetworkName(std::move(value)); return *this;} /** *

The name of the service network.

*/ inline ServiceNetworkServiceAssociationSummary& WithServiceNetworkName(const char* value) { SetServiceNetworkName(value); return *this;} /** *

The status. If the deletion fails, try to delete again.

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

The status. If the deletion fails, try to delete again.

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

The status. If the deletion fails, try to delete again.

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

The status. If the deletion fails, try to delete again.

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

The status. If the deletion fails, try to delete again.

*/ inline ServiceNetworkServiceAssociationSummary& WithStatus(const ServiceNetworkServiceAssociationStatus& value) { SetStatus(value); return *this;} /** *

The status. If the deletion fails, try to delete again.

*/ inline ServiceNetworkServiceAssociationSummary& WithStatus(ServiceNetworkServiceAssociationStatus&& 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_createdBy; bool m_createdByHasBeenSet = 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::String m_serviceArn; bool m_serviceArnHasBeenSet = false; Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_serviceNetworkArn; bool m_serviceNetworkArnHasBeenSet = false; Aws::String m_serviceNetworkId; bool m_serviceNetworkIdHasBeenSet = false; Aws::String m_serviceNetworkName; bool m_serviceNetworkNameHasBeenSet = false; ServiceNetworkServiceAssociationStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace VPCLattice } // namespace Aws