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

Provides summary information for an App Runner service.

This type * contains limited information about a service. It doesn't include configuration * details. It's returned by the ListServices * action. Complete service information is returned by the CreateService, * DescribeService, * and DeleteService * actions using the Service * type.

See Also:

AWS * API Reference

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

The customer-provided service name.

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

The customer-provided service name.

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

The customer-provided service name.

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

The customer-provided service name.

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

The customer-provided service name.

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

The customer-provided service name.

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

The customer-provided service name.

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

The customer-provided service name.

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

An ID that App Runner generated for this service. It's unique within the * Amazon Web Services Region.

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

An ID that App Runner generated for this service. It's unique within the * Amazon Web Services Region.

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

An ID that App Runner generated for this service. It's unique within the * Amazon Web Services Region.

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

An ID that App Runner generated for this service. It's unique within the * Amazon Web Services Region.

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

An ID that App Runner generated for this service. It's unique within the * Amazon Web Services Region.

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

An ID that App Runner generated for this service. It's unique within the * Amazon Web Services Region.

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

An ID that App Runner generated for this service. It's unique within the * Amazon Web Services Region.

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

An ID that App Runner generated for this service. It's unique within the * Amazon Web Services Region.

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

The Amazon Resource Name (ARN) of this service.

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

The Amazon Resource Name (ARN) of this service.

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

The Amazon Resource Name (ARN) of this service.

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

The Amazon Resource Name (ARN) of this service.

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

The Amazon Resource Name (ARN) of this service.

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

The Amazon Resource Name (ARN) of this service.

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

The Amazon Resource Name (ARN) of this service.

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

The Amazon Resource Name (ARN) of this service.

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

A subdomain URL that App Runner generated for this service. You can use this * URL to access your service web application.

*/ inline const Aws::String& GetServiceUrl() const{ return m_serviceUrl; } /** *

A subdomain URL that App Runner generated for this service. You can use this * URL to access your service web application.

*/ inline bool ServiceUrlHasBeenSet() const { return m_serviceUrlHasBeenSet; } /** *

A subdomain URL that App Runner generated for this service. You can use this * URL to access your service web application.

*/ inline void SetServiceUrl(const Aws::String& value) { m_serviceUrlHasBeenSet = true; m_serviceUrl = value; } /** *

A subdomain URL that App Runner generated for this service. You can use this * URL to access your service web application.

*/ inline void SetServiceUrl(Aws::String&& value) { m_serviceUrlHasBeenSet = true; m_serviceUrl = std::move(value); } /** *

A subdomain URL that App Runner generated for this service. You can use this * URL to access your service web application.

*/ inline void SetServiceUrl(const char* value) { m_serviceUrlHasBeenSet = true; m_serviceUrl.assign(value); } /** *

A subdomain URL that App Runner generated for this service. You can use this * URL to access your service web application.

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

A subdomain URL that App Runner generated for this service. You can use this * URL to access your service web application.

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

A subdomain URL that App Runner generated for this service. You can use this * URL to access your service web application.

*/ inline ServiceSummary& WithServiceUrl(const char* value) { SetServiceUrl(value); return *this;} /** *

The time when the App Runner service was created. It's in the Unix time stamp * format.

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

The time when the App Runner service was created. It's in the Unix time stamp * format.

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

The time when the App Runner service was created. It's in the Unix time stamp * format.

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

The time when the App Runner service was created. It's in the Unix time stamp * format.

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

The time when the App Runner service was created. It's in the Unix time stamp * format.

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

The time when the App Runner service was created. It's in the Unix time stamp * format.

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

The time when the App Runner service was last updated. It's in theUnix time * stamp format.

*/ inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; } /** *

The time when the App Runner service was last updated. It's in theUnix time * stamp format.

*/ inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; } /** *

The time when the App Runner service was last updated. It's in theUnix time * stamp format.

*/ inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; } /** *

The time when the App Runner service was last updated. It's in theUnix time * stamp format.

*/ inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); } /** *

The time when the App Runner service was last updated. It's in theUnix time * stamp format.

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

The time when the App Runner service was last updated. It's in theUnix time * stamp format.

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

The current state of the App Runner service. These particular values mean the * following.

  • CREATE_FAILED – The service failed to * create. Read the failure events and logs, change any parameters that need to be * fixed, and retry the call to create the service.

    The failed service isn't * usable, and still counts towards your service quota. When you're done analyzing * the failure, delete the service.

  • DELETE_FAILED – * The service failed to delete and can't be successfully recovered. Retry the * service deletion call to ensure that all related resources are removed.

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

The current state of the App Runner service. These particular values mean the * following.

  • CREATE_FAILED – The service failed to * create. Read the failure events and logs, change any parameters that need to be * fixed, and retry the call to create the service.

    The failed service isn't * usable, and still counts towards your service quota. When you're done analyzing * the failure, delete the service.

  • DELETE_FAILED – * The service failed to delete and can't be successfully recovered. Retry the * service deletion call to ensure that all related resources are removed.

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

The current state of the App Runner service. These particular values mean the * following.

  • CREATE_FAILED – The service failed to * create. Read the failure events and logs, change any parameters that need to be * fixed, and retry the call to create the service.

    The failed service isn't * usable, and still counts towards your service quota. When you're done analyzing * the failure, delete the service.

  • DELETE_FAILED – * The service failed to delete and can't be successfully recovered. Retry the * service deletion call to ensure that all related resources are removed.

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

The current state of the App Runner service. These particular values mean the * following.

  • CREATE_FAILED – The service failed to * create. Read the failure events and logs, change any parameters that need to be * fixed, and retry the call to create the service.

    The failed service isn't * usable, and still counts towards your service quota. When you're done analyzing * the failure, delete the service.

  • DELETE_FAILED – * The service failed to delete and can't be successfully recovered. Retry the * service deletion call to ensure that all related resources are removed.

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

The current state of the App Runner service. These particular values mean the * following.

  • CREATE_FAILED – The service failed to * create. Read the failure events and logs, change any parameters that need to be * fixed, and retry the call to create the service.

    The failed service isn't * usable, and still counts towards your service quota. When you're done analyzing * the failure, delete the service.

  • DELETE_FAILED – * The service failed to delete and can't be successfully recovered. Retry the * service deletion call to ensure that all related resources are removed.

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

The current state of the App Runner service. These particular values mean the * following.

  • CREATE_FAILED – The service failed to * create. Read the failure events and logs, change any parameters that need to be * fixed, and retry the call to create the service.

    The failed service isn't * usable, and still counts towards your service quota. When you're done analyzing * the failure, delete the service.

  • DELETE_FAILED – * The service failed to delete and can't be successfully recovered. Retry the * service deletion call to ensure that all related resources are removed.

    *
*/ inline ServiceSummary& WithStatus(ServiceStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_serviceName; bool m_serviceNameHasBeenSet = false; Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::String m_serviceArn; bool m_serviceArnHasBeenSet = false; Aws::String m_serviceUrl; bool m_serviceUrlHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; Aws::Utils::DateTime m_updatedAt; bool m_updatedAtHasBeenSet = false; ServiceStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace AppRunner } // namespace Aws