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

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

/*
 * 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;

/**
 * 

* The App Runner resource that specifies an App Runner endpoint for incoming traffic. It establishes a connection * between a VPC interface endpoint and a App Runner service, to make your App Runner service accessible from only * within an Amazon VPC. *

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

* The Amazon Resource Name (ARN) of the VPC Ingress Connection. *

*/ private String vpcIngressConnectionArn; /** *

* The customer-provided VPC Ingress Connection name. *

*/ private String vpcIngressConnectionName; /** *

* The Amazon Resource Name (ARN) of the service associated with the VPC Ingress Connection. *

*/ private String serviceArn; /** *

* The current status of the VPC Ingress Connection. The VPC Ingress Connection displays one of the following * statuses: AVAILABLE, PENDING_CREATION, PENDING_UPDATE, * PENDING_DELETION,FAILED_CREATION, FAILED_UPDATE, * FAILED_DELETION, and DELETED.. *

*/ private String status; /** *

* The Account Id you use to create the VPC Ingress Connection resource. *

*/ private String accountId; /** *

* The domain name associated with the VPC Ingress Connection resource. *

*/ private String domainName; /** *

* Specifications for the customer’s VPC and related PrivateLink VPC endpoint that are used to associate with the * VPC Ingress Connection resource. *

*/ private IngressVpcConfiguration ingressVpcConfiguration; /** *

* The time when the VPC Ingress Connection was created. It's in the Unix time stamp format. *

*
    *
  • *

    * Type: Timestamp *

    *
  • *
  • *

    * Required: Yes *

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

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

*
    *
  • *

    * Type: Timestamp *

    *
  • *
  • *

    * Required: No *

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

* The Amazon Resource Name (ARN) of the VPC Ingress Connection. *

* * @param vpcIngressConnectionArn * The Amazon Resource Name (ARN) of the VPC Ingress Connection. */ public void setVpcIngressConnectionArn(String vpcIngressConnectionArn) { this.vpcIngressConnectionArn = vpcIngressConnectionArn; } /** *

* The Amazon Resource Name (ARN) of the VPC Ingress Connection. *

* * @return The Amazon Resource Name (ARN) of the VPC Ingress Connection. */ public String getVpcIngressConnectionArn() { return this.vpcIngressConnectionArn; } /** *

* The Amazon Resource Name (ARN) of the VPC Ingress Connection. *

* * @param vpcIngressConnectionArn * The Amazon Resource Name (ARN) of the VPC Ingress Connection. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcIngressConnection withVpcIngressConnectionArn(String vpcIngressConnectionArn) { setVpcIngressConnectionArn(vpcIngressConnectionArn); return this; } /** *

* The customer-provided VPC Ingress Connection name. *

* * @param vpcIngressConnectionName * The customer-provided VPC Ingress Connection name. */ public void setVpcIngressConnectionName(String vpcIngressConnectionName) { this.vpcIngressConnectionName = vpcIngressConnectionName; } /** *

* The customer-provided VPC Ingress Connection name. *

* * @return The customer-provided VPC Ingress Connection name. */ public String getVpcIngressConnectionName() { return this.vpcIngressConnectionName; } /** *

* The customer-provided VPC Ingress Connection name. *

* * @param vpcIngressConnectionName * The customer-provided VPC Ingress Connection name. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcIngressConnection withVpcIngressConnectionName(String vpcIngressConnectionName) { setVpcIngressConnectionName(vpcIngressConnectionName); return this; } /** *

* The Amazon Resource Name (ARN) of the service associated with the VPC Ingress Connection. *

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

* The Amazon Resource Name (ARN) of the service associated with the VPC Ingress Connection. *

* * @return The Amazon Resource Name (ARN) of the service associated with the VPC Ingress Connection. */ public String getServiceArn() { return this.serviceArn; } /** *

* The Amazon Resource Name (ARN) of the service associated with the VPC Ingress Connection. *

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

* The current status of the VPC Ingress Connection. The VPC Ingress Connection displays one of the following * statuses: AVAILABLE, PENDING_CREATION, PENDING_UPDATE, * PENDING_DELETION,FAILED_CREATION, FAILED_UPDATE, * FAILED_DELETION, and DELETED.. *

* * @param status * The current status of the VPC Ingress Connection. The VPC Ingress Connection displays one of the following * statuses: AVAILABLE, PENDING_CREATION, PENDING_UPDATE, * PENDING_DELETION,FAILED_CREATION, FAILED_UPDATE, * FAILED_DELETION, and DELETED.. * @see VpcIngressConnectionStatus */ public void setStatus(String status) { this.status = status; } /** *

* The current status of the VPC Ingress Connection. The VPC Ingress Connection displays one of the following * statuses: AVAILABLE, PENDING_CREATION, PENDING_UPDATE, * PENDING_DELETION,FAILED_CREATION, FAILED_UPDATE, * FAILED_DELETION, and DELETED.. *

* * @return The current status of the VPC Ingress Connection. The VPC Ingress Connection displays one of the * following statuses: AVAILABLE, PENDING_CREATION, PENDING_UPDATE, * PENDING_DELETION,FAILED_CREATION, FAILED_UPDATE, * FAILED_DELETION, and DELETED.. * @see VpcIngressConnectionStatus */ public String getStatus() { return this.status; } /** *

* The current status of the VPC Ingress Connection. The VPC Ingress Connection displays one of the following * statuses: AVAILABLE, PENDING_CREATION, PENDING_UPDATE, * PENDING_DELETION,FAILED_CREATION, FAILED_UPDATE, * FAILED_DELETION, and DELETED.. *

* * @param status * The current status of the VPC Ingress Connection. The VPC Ingress Connection displays one of the following * statuses: AVAILABLE, PENDING_CREATION, PENDING_UPDATE, * PENDING_DELETION,FAILED_CREATION, FAILED_UPDATE, * FAILED_DELETION, and DELETED.. * @return Returns a reference to this object so that method calls can be chained together. * @see VpcIngressConnectionStatus */ public VpcIngressConnection withStatus(String status) { setStatus(status); return this; } /** *

* The current status of the VPC Ingress Connection. The VPC Ingress Connection displays one of the following * statuses: AVAILABLE, PENDING_CREATION, PENDING_UPDATE, * PENDING_DELETION,FAILED_CREATION, FAILED_UPDATE, * FAILED_DELETION, and DELETED.. *

* * @param status * The current status of the VPC Ingress Connection. The VPC Ingress Connection displays one of the following * statuses: AVAILABLE, PENDING_CREATION, PENDING_UPDATE, * PENDING_DELETION,FAILED_CREATION, FAILED_UPDATE, * FAILED_DELETION, and DELETED.. * @return Returns a reference to this object so that method calls can be chained together. * @see VpcIngressConnectionStatus */ public VpcIngressConnection withStatus(VpcIngressConnectionStatus status) { this.status = status.toString(); return this; } /** *

* The Account Id you use to create the VPC Ingress Connection resource. *

* * @param accountId * The Account Id you use to create the VPC Ingress Connection resource. */ public void setAccountId(String accountId) { this.accountId = accountId; } /** *

* The Account Id you use to create the VPC Ingress Connection resource. *

* * @return The Account Id you use to create the VPC Ingress Connection resource. */ public String getAccountId() { return this.accountId; } /** *

* The Account Id you use to create the VPC Ingress Connection resource. *

* * @param accountId * The Account Id you use to create the VPC Ingress Connection resource. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcIngressConnection withAccountId(String accountId) { setAccountId(accountId); return this; } /** *

* The domain name associated with the VPC Ingress Connection resource. *

* * @param domainName * The domain name associated with the VPC Ingress Connection resource. */ public void setDomainName(String domainName) { this.domainName = domainName; } /** *

* The domain name associated with the VPC Ingress Connection resource. *

* * @return The domain name associated with the VPC Ingress Connection resource. */ public String getDomainName() { return this.domainName; } /** *

* The domain name associated with the VPC Ingress Connection resource. *

* * @param domainName * The domain name associated with the VPC Ingress Connection resource. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcIngressConnection withDomainName(String domainName) { setDomainName(domainName); return this; } /** *

* Specifications for the customer’s VPC and related PrivateLink VPC endpoint that are used to associate with the * VPC Ingress Connection resource. *

* * @param ingressVpcConfiguration * Specifications for the customer’s VPC and related PrivateLink VPC endpoint that are used to associate with * the VPC Ingress Connection resource. */ public void setIngressVpcConfiguration(IngressVpcConfiguration ingressVpcConfiguration) { this.ingressVpcConfiguration = ingressVpcConfiguration; } /** *

* Specifications for the customer’s VPC and related PrivateLink VPC endpoint that are used to associate with the * VPC Ingress Connection resource. *

* * @return Specifications for the customer’s VPC and related PrivateLink VPC endpoint that are used to associate * with the VPC Ingress Connection resource. */ public IngressVpcConfiguration getIngressVpcConfiguration() { return this.ingressVpcConfiguration; } /** *

* Specifications for the customer’s VPC and related PrivateLink VPC endpoint that are used to associate with the * VPC Ingress Connection resource. *

* * @param ingressVpcConfiguration * Specifications for the customer’s VPC and related PrivateLink VPC endpoint that are used to associate with * the VPC Ingress Connection resource. * @return Returns a reference to this object so that method calls can be chained together. */ public VpcIngressConnection withIngressVpcConfiguration(IngressVpcConfiguration ingressVpcConfiguration) { setIngressVpcConfiguration(ingressVpcConfiguration); return this; } /** *

* The time when the VPC Ingress Connection was created. It's in the Unix time stamp format. *

*
    *
  • *

    * Type: Timestamp *

    *
  • *
  • *

    * Required: Yes *

    *
  • *
* * @param createdAt * The time when the VPC Ingress Connection was created. It's in the Unix time stamp format.

*
    *
  • *

    * Type: Timestamp *

    *
  • *
  • *

    * Required: Yes *

    *
  • */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

    * The time when the VPC Ingress Connection was created. It's in the Unix time stamp format. *

    *
      *
    • *

      * Type: Timestamp *

      *
    • *
    • *

      * Required: Yes *

      *
    • *
    * * @return The time when the VPC Ingress Connection was created. It's in the Unix time stamp format.

    *
      *
    • *

      * Type: Timestamp *

      *
    • *
    • *

      * Required: Yes *

      *
    • */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

      * The time when the VPC Ingress Connection was created. It's in the Unix time stamp format. *

      *
        *
      • *

        * Type: Timestamp *

        *
      • *
      • *

        * Required: Yes *

        *
      • *
      * * @param createdAt * The time when the VPC Ingress Connection was created. It's in the Unix time stamp format.

      *
        *
      • *

        * Type: Timestamp *

        *
      • *
      • *

        * Required: Yes *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public VpcIngressConnection withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

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

        *
          *
        • *

          * Type: Timestamp *

          *
        • *
        • *

          * Required: No *

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

        *
          *
        • *

          * Type: Timestamp *

          *
        • *
        • *

          * Required: No *

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

          *
            *
          • *

            * Type: Timestamp *

            *
          • *
          • *

            * Required: No *

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

          *
            *
          • *

            * Type: Timestamp *

            *
          • *
          • *

            * Required: No *

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

            *
              *
            • *

              * Type: Timestamp *

              *
            • *
            • *

              * Required: No *

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

            *
              *
            • *

              * Type: Timestamp *

              *
            • *
            • *

              * Required: No *

              *
            • * @return Returns a reference to this object so that method calls can be chained together. */ public VpcIngressConnection withDeletedAt(java.util.Date deletedAt) { setDeletedAt(deletedAt); 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 (getVpcIngressConnectionArn() != null) sb.append("VpcIngressConnectionArn: ").append(getVpcIngressConnectionArn()).append(","); if (getVpcIngressConnectionName() != null) sb.append("VpcIngressConnectionName: ").append(getVpcIngressConnectionName()).append(","); if (getServiceArn() != null) sb.append("ServiceArn: ").append(getServiceArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getAccountId() != null) sb.append("AccountId: ").append(getAccountId()).append(","); if (getDomainName() != null) sb.append("DomainName: ").append(getDomainName()).append(","); if (getIngressVpcConfiguration() != null) sb.append("IngressVpcConfiguration: ").append(getIngressVpcConfiguration()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getDeletedAt() != null) sb.append("DeletedAt: ").append(getDeletedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof VpcIngressConnection == false) return false; VpcIngressConnection other = (VpcIngressConnection) obj; if (other.getVpcIngressConnectionArn() == null ^ this.getVpcIngressConnectionArn() == null) return false; if (other.getVpcIngressConnectionArn() != null && other.getVpcIngressConnectionArn().equals(this.getVpcIngressConnectionArn()) == false) return false; if (other.getVpcIngressConnectionName() == null ^ this.getVpcIngressConnectionName() == null) return false; if (other.getVpcIngressConnectionName() != null && other.getVpcIngressConnectionName().equals(this.getVpcIngressConnectionName()) == 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.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getAccountId() == null ^ this.getAccountId() == null) return false; if (other.getAccountId() != null && other.getAccountId().equals(this.getAccountId()) == false) return false; if (other.getDomainName() == null ^ this.getDomainName() == null) return false; if (other.getDomainName() != null && other.getDomainName().equals(this.getDomainName()) == false) return false; if (other.getIngressVpcConfiguration() == null ^ this.getIngressVpcConfiguration() == null) return false; if (other.getIngressVpcConfiguration() != null && other.getIngressVpcConfiguration().equals(this.getIngressVpcConfiguration()) == 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.getDeletedAt() == null ^ this.getDeletedAt() == null) return false; if (other.getDeletedAt() != null && other.getDeletedAt().equals(this.getDeletedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVpcIngressConnectionArn() == null) ? 0 : getVpcIngressConnectionArn().hashCode()); hashCode = prime * hashCode + ((getVpcIngressConnectionName() == null) ? 0 : getVpcIngressConnectionName().hashCode()); hashCode = prime * hashCode + ((getServiceArn() == null) ? 0 : getServiceArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getAccountId() == null) ? 0 : getAccountId().hashCode()); hashCode = prime * hashCode + ((getDomainName() == null) ? 0 : getDomainName().hashCode()); hashCode = prime * hashCode + ((getIngressVpcConfiguration() == null) ? 0 : getIngressVpcConfiguration().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getDeletedAt() == null) ? 0 : getDeletedAt().hashCode()); return hashCode; } @Override public VpcIngressConnection clone() { try { return (VpcIngressConnection) 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.VpcIngressConnectionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy