/** * 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 namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace VPCLattice { namespace Model { class GetServiceResult { public: AWS_VPCLATTICE_API GetServiceResult(); AWS_VPCLATTICE_API GetServiceResult(const Aws::AmazonWebServiceResult& result); AWS_VPCLATTICE_API GetServiceResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

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 void SetArn(const Aws::String& value) { m_arn = value; } /** *

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The Amazon Resource Name (ARN) of the service.

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

The type of IAM policy.

*/ inline const AuthType& GetAuthType() const{ return m_authType; } /** *

The type of IAM policy.

*/ inline void SetAuthType(const AuthType& value) { m_authType = value; } /** *

The type of IAM policy.

*/ inline void SetAuthType(AuthType&& value) { m_authType = std::move(value); } /** *

The type of IAM policy.

*/ inline GetServiceResult& WithAuthType(const AuthType& value) { SetAuthType(value); return *this;} /** *

The type of IAM policy.

*/ inline GetServiceResult& WithAuthType(AuthType&& value) { SetAuthType(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(const Aws::String& value) { m_certificateArn = value; } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(Aws::String&& value) { m_certificateArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline void SetCertificateArn(const char* value) { m_certificateArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline GetServiceResult& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline GetServiceResult& WithCertificateArn(Aws::String&& value) { SetCertificateArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the certificate.

*/ inline GetServiceResult& WithCertificateArn(const char* value) { SetCertificateArn(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 void SetCreatedAt(const Aws::Utils::DateTime& value) { 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_createdAt = std::move(value); } /** *

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

*/ inline GetServiceResult& 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 GetServiceResult& 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 void SetCustomDomainName(const Aws::String& value) { m_customDomainName = value; } /** *

The custom domain name of the service.

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

The custom domain name of the service.

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

The custom domain name of the service.

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

The custom domain name of the service.

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

The custom domain name of the service.

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

The DNS name of the service.

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

The DNS name of the service.

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

The DNS name of the service.

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

The DNS name of the service.

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

The DNS name of the service.

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

The failure code.

*/ inline const Aws::String& GetFailureCode() const{ return m_failureCode; } /** *

The failure code.

*/ inline void SetFailureCode(const Aws::String& value) { m_failureCode = value; } /** *

The failure code.

*/ inline void SetFailureCode(Aws::String&& value) { m_failureCode = std::move(value); } /** *

The failure code.

*/ inline void SetFailureCode(const char* value) { m_failureCode.assign(value); } /** *

The failure code.

*/ inline GetServiceResult& WithFailureCode(const Aws::String& value) { SetFailureCode(value); return *this;} /** *

The failure code.

*/ inline GetServiceResult& WithFailureCode(Aws::String&& value) { SetFailureCode(std::move(value)); return *this;} /** *

The failure code.

*/ inline GetServiceResult& WithFailureCode(const char* value) { SetFailureCode(value); return *this;} /** *

The failure message.

*/ inline const Aws::String& GetFailureMessage() const{ return m_failureMessage; } /** *

The failure message.

*/ inline void SetFailureMessage(const Aws::String& value) { m_failureMessage = value; } /** *

The failure message.

*/ inline void SetFailureMessage(Aws::String&& value) { m_failureMessage = std::move(value); } /** *

The failure message.

*/ inline void SetFailureMessage(const char* value) { m_failureMessage.assign(value); } /** *

The failure message.

*/ inline GetServiceResult& WithFailureMessage(const Aws::String& value) { SetFailureMessage(value); return *this;} /** *

The failure message.

*/ inline GetServiceResult& WithFailureMessage(Aws::String&& value) { SetFailureMessage(std::move(value)); return *this;} /** *

The failure message.

*/ inline GetServiceResult& WithFailureMessage(const char* value) { SetFailureMessage(value); return *this;} /** *

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

The ID of the service.

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

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

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

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

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

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

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

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

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

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

*/ inline GetServiceResult& 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 void SetName(const Aws::String& value) { m_name = value; } /** *

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The name of the service.

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

The status of the service.

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

The status of the service.

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

The status of the service.

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

The status of the service.

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

The status of the service.

*/ inline GetServiceResult& WithStatus(ServiceStatus&& value) { SetStatus(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetServiceResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetServiceResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetServiceResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_arn; AuthType m_authType; Aws::String m_certificateArn; Aws::Utils::DateTime m_createdAt; Aws::String m_customDomainName; DnsEntry m_dnsEntry; Aws::String m_failureCode; Aws::String m_failureMessage; Aws::String m_id; Aws::Utils::DateTime m_lastUpdatedAt; Aws::String m_name; ServiceStatus m_status; Aws::String m_requestId; }; } // namespace Model } // namespace VPCLattice } // namespace Aws