/* * 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.opensearch.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Options to configure a custom endpoint for an OpenSearch Service domain. *

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

* True to require that all traffic to the domain arrive over HTTPS. *

*/ private Boolean enforceHTTPS; /** *

* Specify the TLS security policy to apply to the HTTPS endpoint of the domain. *

*

* Can be one of the following values: *

* */ private String tLSSecurityPolicy; /** *

* Whether to enable a custom endpoint for the domain. *

*/ private Boolean customEndpointEnabled; /** *

* The fully qualified URL for the custom endpoint. *

*/ private String customEndpoint; /** *

* The ARN for your security certificate, managed in Amazon Web Services Certificate Manager (ACM). *

*/ private String customEndpointCertificateArn; /** *

* True to require that all traffic to the domain arrive over HTTPS. *

* * @param enforceHTTPS * True to require that all traffic to the domain arrive over HTTPS. */ public void setEnforceHTTPS(Boolean enforceHTTPS) { this.enforceHTTPS = enforceHTTPS; } /** *

* True to require that all traffic to the domain arrive over HTTPS. *

* * @return True to require that all traffic to the domain arrive over HTTPS. */ public Boolean getEnforceHTTPS() { return this.enforceHTTPS; } /** *

* True to require that all traffic to the domain arrive over HTTPS. *

* * @param enforceHTTPS * True to require that all traffic to the domain arrive over HTTPS. * @return Returns a reference to this object so that method calls can be chained together. */ public DomainEndpointOptions withEnforceHTTPS(Boolean enforceHTTPS) { setEnforceHTTPS(enforceHTTPS); return this; } /** *

* True to require that all traffic to the domain arrive over HTTPS. *

* * @return True to require that all traffic to the domain arrive over HTTPS. */ public Boolean isEnforceHTTPS() { return this.enforceHTTPS; } /** *

* Specify the TLS security policy to apply to the HTTPS endpoint of the domain. *

*

* Can be one of the following values: *

* * * @param tLSSecurityPolicy * Specify the TLS security policy to apply to the HTTPS endpoint of the domain.

*

* Can be one of the following values: *

*