All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.apprunner.model.ServiceSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS App Runner module holds the client classes that are used for communicating with AWS App Runner Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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;

/**
 * 

* 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 AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ServiceSummary 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. It's in theUnix time stamp format. *

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

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

*
    *
  • *

    * CREATE_FAILED – The service failed to create. The failed service isn't usable, and still counts * towards your service quota. To troubleshoot this failure, read the failure events and logs, change any parameters * that need to be fixed, and rebuild your service using UpdateService. *

    *
  • *
  • *

    * 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. *

    *
  • *
*/ private String status; /** *

* 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 ServiceSummary 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 ServiceSummary 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 ServiceSummary 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 ServiceSummary 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 ServiceSummary withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

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

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

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

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

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

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

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

*
    *
  • *

    * CREATE_FAILED – The service failed to create. The failed service isn't usable, and still counts * towards your service quota. To troubleshoot this failure, read the failure events and logs, change any parameters * that need to be fixed, and rebuild your service using UpdateService. *

    *
  • *
  • *

    * 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. *

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

*
    *
  • *

    * CREATE_FAILED – The service failed to create. The failed service isn't usable, and still * counts towards your service quota. To troubleshoot this failure, read the failure events and logs, change * any parameters that need to be fixed, and rebuild your service using UpdateService. *

    *
  • *
  • *

    * 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. *

    *
  • * @see ServiceStatus */ public void setStatus(String status) { this.status = status; } /** *

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

    *
      *
    • *

      * CREATE_FAILED – The service failed to create. The failed service isn't usable, and still counts * towards your service quota. To troubleshoot this failure, read the failure events and logs, change any parameters * that need to be fixed, and rebuild your service using UpdateService. *

      *
    • *
    • *

      * 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. *

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

    *
      *
    • *

      * CREATE_FAILED – The service failed to create. The failed service isn't usable, and still * counts towards your service quota. To troubleshoot this failure, read the failure events and logs, change * any parameters that need to be fixed, and rebuild your service using UpdateService. *

      *
    • *
    • *

      * 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. *

      *
    • * @see ServiceStatus */ public String getStatus() { return this.status; } /** *

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

      *
        *
      • *

        * CREATE_FAILED – The service failed to create. The failed service isn't usable, and still counts * towards your service quota. To troubleshoot this failure, read the failure events and logs, change any parameters * that need to be fixed, and rebuild your service using UpdateService. *

        *
      • *
      • *

        * 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. *

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

      *
        *
      • *

        * CREATE_FAILED – The service failed to create. The failed service isn't usable, and still * counts towards your service quota. To troubleshoot this failure, read the failure events and logs, change * any parameters that need to be fixed, and rebuild your service using UpdateService. *

        *
      • *
      • *

        * 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. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceStatus */ public ServiceSummary withStatus(String status) { setStatus(status); return this; } /** *

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

        *
          *
        • *

          * CREATE_FAILED – The service failed to create. The failed service isn't usable, and still counts * towards your service quota. To troubleshoot this failure, read the failure events and logs, change any parameters * that need to be fixed, and rebuild your service using UpdateService. *

          *
        • *
        • *

          * 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. *

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

        *
          *
        • *

          * CREATE_FAILED – The service failed to create. The failed service isn't usable, and still * counts towards your service quota. To troubleshoot this failure, read the failure events and logs, change * any parameters that need to be fixed, and rebuild your service using UpdateService. *

          *
        • *
        • *

          * 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. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see ServiceStatus */ public ServiceSummary withStatus(ServiceStatus status) { this.status = status.toString(); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getServiceName() != null) sb.append("ServiceName: ").append(getServiceName()).append(","); if (getServiceId() != null) sb.append("ServiceId: ").append(getServiceId()).append(","); if (getServiceArn() != null) sb.append("ServiceArn: ").append(getServiceArn()).append(","); if (getServiceUrl() != null) sb.append("ServiceUrl: ").append(getServiceUrl()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getUpdatedAt() != null) sb.append("UpdatedAt: ").append(getUpdatedAt()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ServiceSummary == false) return false; ServiceSummary other = (ServiceSummary) obj; if (other.getServiceName() == null ^ this.getServiceName() == null) return false; if (other.getServiceName() != null && other.getServiceName().equals(this.getServiceName()) == false) return false; if (other.getServiceId() == null ^ this.getServiceId() == null) return false; if (other.getServiceId() != null && other.getServiceId().equals(this.getServiceId()) == false) return false; if (other.getServiceArn() == null ^ this.getServiceArn() == null) return false; if (other.getServiceArn() != null && other.getServiceArn().equals(this.getServiceArn()) == false) return false; if (other.getServiceUrl() == null ^ this.getServiceUrl() == null) return false; if (other.getServiceUrl() != null && other.getServiceUrl().equals(this.getServiceUrl()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getUpdatedAt() == null ^ this.getUpdatedAt() == null) return false; if (other.getUpdatedAt() != null && other.getUpdatedAt().equals(this.getUpdatedAt()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getServiceName() == null) ? 0 : getServiceName().hashCode()); hashCode = prime * hashCode + ((getServiceId() == null) ? 0 : getServiceId().hashCode()); hashCode = prime * hashCode + ((getServiceArn() == null) ? 0 : getServiceArn().hashCode()); hashCode = prime * hashCode + ((getServiceUrl() == null) ? 0 : getServiceUrl().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); return hashCode; } @Override public ServiceSummary clone() { try { return (ServiceSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.apprunner.model.transform.ServiceSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy