/* * 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.s3outposts.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateEndpointRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The ID of the Outposts. *
*/ private String outpostId; /** ** The ID of the subnet in the selected VPC. The endpoint subnet must belong to the Outpost that has Amazon S3 on * Outposts provisioned. *
*/ private String subnetId; /** ** The ID of the security group to use with the endpoint. *
*/ private String securityGroupId; /** *
* The type of access for the network connectivity for the Amazon S3 on Outposts endpoint. To use the Amazon Web
* Services VPC, choose Private
. To use the endpoint with an on-premises network, choose
* CustomerOwnedIp
. If you choose CustomerOwnedIp
, you must also provide the
* customer-owned IP address pool (CoIP pool).
*
* Private
is the default access type value.
*
* The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint. IP addresses are allocated from this * pool for the endpoint. *
*/ private String customerOwnedIpv4Pool; /** ** The ID of the Outposts. *
* * @param outpostId * The ID of the Outposts. */ public void setOutpostId(String outpostId) { this.outpostId = outpostId; } /** ** The ID of the Outposts. *
* * @return The ID of the Outposts. */ public String getOutpostId() { return this.outpostId; } /** ** The ID of the Outposts. *
* * @param outpostId * The ID of the Outposts. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEndpointRequest withOutpostId(String outpostId) { setOutpostId(outpostId); return this; } /** ** The ID of the subnet in the selected VPC. The endpoint subnet must belong to the Outpost that has Amazon S3 on * Outposts provisioned. *
* * @param subnetId * The ID of the subnet in the selected VPC. The endpoint subnet must belong to the Outpost that has Amazon * S3 on Outposts provisioned. */ public void setSubnetId(String subnetId) { this.subnetId = subnetId; } /** ** The ID of the subnet in the selected VPC. The endpoint subnet must belong to the Outpost that has Amazon S3 on * Outposts provisioned. *
* * @return The ID of the subnet in the selected VPC. The endpoint subnet must belong to the Outpost that has Amazon * S3 on Outposts provisioned. */ public String getSubnetId() { return this.subnetId; } /** ** The ID of the subnet in the selected VPC. The endpoint subnet must belong to the Outpost that has Amazon S3 on * Outposts provisioned. *
* * @param subnetId * The ID of the subnet in the selected VPC. The endpoint subnet must belong to the Outpost that has Amazon * S3 on Outposts provisioned. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEndpointRequest withSubnetId(String subnetId) { setSubnetId(subnetId); return this; } /** ** The ID of the security group to use with the endpoint. *
* * @param securityGroupId * The ID of the security group to use with the endpoint. */ public void setSecurityGroupId(String securityGroupId) { this.securityGroupId = securityGroupId; } /** ** The ID of the security group to use with the endpoint. *
* * @return The ID of the security group to use with the endpoint. */ public String getSecurityGroupId() { return this.securityGroupId; } /** ** The ID of the security group to use with the endpoint. *
* * @param securityGroupId * The ID of the security group to use with the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEndpointRequest withSecurityGroupId(String securityGroupId) { setSecurityGroupId(securityGroupId); return this; } /** *
* The type of access for the network connectivity for the Amazon S3 on Outposts endpoint. To use the Amazon Web
* Services VPC, choose Private
. To use the endpoint with an on-premises network, choose
* CustomerOwnedIp
. If you choose CustomerOwnedIp
, you must also provide the
* customer-owned IP address pool (CoIP pool).
*
* Private
is the default access type value.
*
Private
. To use the endpoint with an on-premises network, choose
* CustomerOwnedIp
. If you choose CustomerOwnedIp
, you must also provide the
* customer-owned IP address pool (CoIP pool).
* Private
is the default access type value.
*
* The type of access for the network connectivity for the Amazon S3 on Outposts endpoint. To use the Amazon Web
* Services VPC, choose Private
. To use the endpoint with an on-premises network, choose
* CustomerOwnedIp
. If you choose CustomerOwnedIp
, you must also provide the
* customer-owned IP address pool (CoIP pool).
*
* Private
is the default access type value.
*
Private
. To use the endpoint with an on-premises network, choose
* CustomerOwnedIp
. If you choose CustomerOwnedIp
, you must also provide the
* customer-owned IP address pool (CoIP pool).
* Private
is the default access type value.
*
* The type of access for the network connectivity for the Amazon S3 on Outposts endpoint. To use the Amazon Web
* Services VPC, choose Private
. To use the endpoint with an on-premises network, choose
* CustomerOwnedIp
. If you choose CustomerOwnedIp
, you must also provide the
* customer-owned IP address pool (CoIP pool).
*
* Private
is the default access type value.
*
Private
. To use the endpoint with an on-premises network, choose
* CustomerOwnedIp
. If you choose CustomerOwnedIp
, you must also provide the
* customer-owned IP address pool (CoIP pool).
* Private
is the default access type value.
*
* The type of access for the network connectivity for the Amazon S3 on Outposts endpoint. To use the Amazon Web
* Services VPC, choose Private
. To use the endpoint with an on-premises network, choose
* CustomerOwnedIp
. If you choose CustomerOwnedIp
, you must also provide the
* customer-owned IP address pool (CoIP pool).
*
* Private
is the default access type value.
*
Private
. To use the endpoint with an on-premises network, choose
* CustomerOwnedIp
. If you choose CustomerOwnedIp
, you must also provide the
* customer-owned IP address pool (CoIP pool).
* Private
is the default access type value.
*
* The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint. IP addresses are allocated from this * pool for the endpoint. *
* * @param customerOwnedIpv4Pool * The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint. IP addresses are allocated * from this pool for the endpoint. */ public void setCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool) { this.customerOwnedIpv4Pool = customerOwnedIpv4Pool; } /** ** The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint. IP addresses are allocated from this * pool for the endpoint. *
* * @return The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint. IP addresses are allocated * from this pool for the endpoint. */ public String getCustomerOwnedIpv4Pool() { return this.customerOwnedIpv4Pool; } /** ** The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint. IP addresses are allocated from this * pool for the endpoint. *
* * @param customerOwnedIpv4Pool * The ID of the customer-owned IPv4 address pool (CoIP pool) for the endpoint. IP addresses are allocated * from this pool for the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEndpointRequest withCustomerOwnedIpv4Pool(String customerOwnedIpv4Pool) { setCustomerOwnedIpv4Pool(customerOwnedIpv4Pool); 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 (getOutpostId() != null) sb.append("OutpostId: ").append(getOutpostId()).append(","); if (getSubnetId() != null) sb.append("SubnetId: ").append(getSubnetId()).append(","); if (getSecurityGroupId() != null) sb.append("SecurityGroupId: ").append(getSecurityGroupId()).append(","); if (getAccessType() != null) sb.append("AccessType: ").append(getAccessType()).append(","); if (getCustomerOwnedIpv4Pool() != null) sb.append("CustomerOwnedIpv4Pool: ").append(getCustomerOwnedIpv4Pool()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateEndpointRequest == false) return false; CreateEndpointRequest other = (CreateEndpointRequest) obj; if (other.getOutpostId() == null ^ this.getOutpostId() == null) return false; if (other.getOutpostId() != null && other.getOutpostId().equals(this.getOutpostId()) == false) return false; if (other.getSubnetId() == null ^ this.getSubnetId() == null) return false; if (other.getSubnetId() != null && other.getSubnetId().equals(this.getSubnetId()) == false) return false; if (other.getSecurityGroupId() == null ^ this.getSecurityGroupId() == null) return false; if (other.getSecurityGroupId() != null && other.getSecurityGroupId().equals(this.getSecurityGroupId()) == false) return false; if (other.getAccessType() == null ^ this.getAccessType() == null) return false; if (other.getAccessType() != null && other.getAccessType().equals(this.getAccessType()) == false) return false; if (other.getCustomerOwnedIpv4Pool() == null ^ this.getCustomerOwnedIpv4Pool() == null) return false; if (other.getCustomerOwnedIpv4Pool() != null && other.getCustomerOwnedIpv4Pool().equals(this.getCustomerOwnedIpv4Pool()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOutpostId() == null) ? 0 : getOutpostId().hashCode()); hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode()); hashCode = prime * hashCode + ((getSecurityGroupId() == null) ? 0 : getSecurityGroupId().hashCode()); hashCode = prime * hashCode + ((getAccessType() == null) ? 0 : getAccessType().hashCode()); hashCode = prime * hashCode + ((getCustomerOwnedIpv4Pool() == null) ? 0 : getCustomerOwnedIpv4Pool().hashCode()); return hashCode; } @Override public CreateEndpointRequest clone() { return (CreateEndpointRequest) super.clone(); } }