/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.apprunner.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Describes an App Runner service. It can describe a service in any state, including deleted services. *

*

* This type contains the full information about a service, including configuration details. It's returned by the CreateService, DescribeService, and DeleteService actions. A subset of * this information is returned by the ListServices action using the ServiceSummary type. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Service implements Serializable, Cloneable, StructuredPojo { /** *

* The customer-provided service name. *

*/ private String serviceName; /** *

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

*/ private String serviceId; /** *

* The Amazon Resource Name (ARN) of this service. *

*/ private String serviceArn; /** *

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

*/ private String serviceUrl; /** *

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

*/ private java.util.Date createdAt; /** *

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

*/ private java.util.Date updatedAt; /** *

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

*/ private java.util.Date deletedAt; /** *

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

* */ private String status; /** *

* The source deployed to the App Runner service. It can be a code or an image repository. *

*/ private SourceConfiguration sourceConfiguration; /** *

* The runtime configuration of instances (scaling units) of this service. *

*/ private InstanceConfiguration instanceConfiguration; /** *

* The encryption key that App Runner uses to encrypt the service logs and the copy of the source repository that * App Runner maintains for the service. It can be either a customer-provided encryption key or an Amazon Web * Services managed key. *

*/ private EncryptionConfiguration encryptionConfiguration; /** *

* The settings for the health check that App Runner performs to monitor the health of this service. *

*/ private HealthCheckConfiguration healthCheckConfiguration; /** *

* Summary information for the App Runner automatic scaling configuration resource that's associated with this * service. *

*/ private AutoScalingConfigurationSummary autoScalingConfigurationSummary; /** *

* Configuration settings related to network traffic of the web application that this service runs. *

*/ private NetworkConfiguration networkConfiguration; /** *

* The observability configuration of this service. *

*/ private ServiceObservabilityConfiguration observabilityConfiguration; /** *

* The customer-provided service name. *

* * @param serviceName * The customer-provided service name. */ public void setServiceName(String serviceName) { this.serviceName = serviceName; } /** *

* The customer-provided service name. *

* * @return The customer-provided service name. */ public String getServiceName() { return this.serviceName; } /** *

* The customer-provided service name. *

* * @param serviceName * The customer-provided service name. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withServiceName(String serviceName) { setServiceName(serviceName); return this; } /** *

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

* * @param serviceId * An ID that App Runner generated for this service. It's unique within the Amazon Web Services Region. */ public void setServiceId(String serviceId) { this.serviceId = serviceId; } /** *

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

* * @return An ID that App Runner generated for this service. It's unique within the Amazon Web Services Region. */ public String getServiceId() { return this.serviceId; } /** *

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

* * @param serviceId * An ID that App Runner generated for this service. It's unique within the Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withServiceId(String serviceId) { setServiceId(serviceId); return this; } /** *

* The Amazon Resource Name (ARN) of this service. *

* * @param serviceArn * The Amazon Resource Name (ARN) of this service. */ public void setServiceArn(String serviceArn) { this.serviceArn = serviceArn; } /** *

* The Amazon Resource Name (ARN) of this service. *

* * @return The Amazon Resource Name (ARN) of this service. */ public String getServiceArn() { return this.serviceArn; } /** *

* The Amazon Resource Name (ARN) of this service. *

* * @param serviceArn * The Amazon Resource Name (ARN) of this service. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withServiceArn(String serviceArn) { setServiceArn(serviceArn); return this; } /** *

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

* * @param serviceUrl * A subdomain URL that App Runner generated for this service. You can use this URL to access your service * web application. */ public void setServiceUrl(String serviceUrl) { this.serviceUrl = serviceUrl; } /** *

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

* * @return A subdomain URL that App Runner generated for this service. You can use this URL to access your service * web application. */ public String getServiceUrl() { return this.serviceUrl; } /** *

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

* * @param serviceUrl * A subdomain URL that App Runner generated for this service. You can use this URL to access your service * web application. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withServiceUrl(String serviceUrl) { setServiceUrl(serviceUrl); return this; } /** *

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

* * @param createdAt * The time when the App Runner service was created. It's in the Unix time stamp format. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

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

* * @return The time when the App Runner service was created. It's in the Unix time stamp format. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

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

* * @param createdAt * The time when the App Runner service was created. It's in the Unix time stamp format. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

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

* * @param updatedAt * The time when the App Runner service was last updated at. It's in the Unix time stamp format. */ public void setUpdatedAt(java.util.Date updatedAt) { this.updatedAt = updatedAt; } /** *

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

* * @return The time when the App Runner service was last updated at. It's in the Unix time stamp format. */ public java.util.Date getUpdatedAt() { return this.updatedAt; } /** *

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

* * @param updatedAt * The time when the App Runner service was last updated at. It's in the Unix time stamp format. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withUpdatedAt(java.util.Date updatedAt) { setUpdatedAt(updatedAt); return this; } /** *

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

* * @param deletedAt * The time when the App Runner service was deleted. It's in the Unix time stamp format. */ public void setDeletedAt(java.util.Date deletedAt) { this.deletedAt = deletedAt; } /** *

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

* * @return The time when the App Runner service was deleted. It's in the Unix time stamp format. */ public java.util.Date getDeletedAt() { return this.deletedAt; } /** *

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

* * @param deletedAt * The time when the App Runner service was deleted. It's in the Unix time stamp format. * @return Returns a reference to this object so that method calls can be chained together. */ public Service withDeletedAt(java.util.Date deletedAt) { setDeletedAt(deletedAt); return this; } /** *

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

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

*