/* * 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.securityhub.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Additional options for the domain endpoint, such as whether to require HTTPS for all traffic. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsElasticsearchDomainDomainEndpointOptions implements Serializable, Cloneable, StructuredPojo { /** ** Whether to require that all traffic to the domain arrive over HTTPS. *
*/ private Boolean enforceHTTPS; /** ** The TLS security policy to apply to the HTTPS endpoint of the OpenSearch domain. *
** Valid values: *
*
* Policy-Min-TLS-1-0-2019-07
, which supports TLSv1.0 and higher
*
* Policy-Min-TLS-1-2-2019-07
, which only supports TLSv1.2
*
* Whether to require that all traffic to the domain arrive over HTTPS. *
* * @param enforceHTTPS * Whether to require that all traffic to the domain arrive over HTTPS. */ public void setEnforceHTTPS(Boolean enforceHTTPS) { this.enforceHTTPS = enforceHTTPS; } /** ** Whether to require that all traffic to the domain arrive over HTTPS. *
* * @return Whether to require that all traffic to the domain arrive over HTTPS. */ public Boolean getEnforceHTTPS() { return this.enforceHTTPS; } /** ** Whether to require that all traffic to the domain arrive over HTTPS. *
* * @param enforceHTTPS * Whether 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 AwsElasticsearchDomainDomainEndpointOptions withEnforceHTTPS(Boolean enforceHTTPS) { setEnforceHTTPS(enforceHTTPS); return this; } /** ** Whether to require that all traffic to the domain arrive over HTTPS. *
* * @return Whether to require that all traffic to the domain arrive over HTTPS. */ public Boolean isEnforceHTTPS() { return this.enforceHTTPS; } /** ** The TLS security policy to apply to the HTTPS endpoint of the OpenSearch domain. *
** Valid values: *
*
* Policy-Min-TLS-1-0-2019-07
, which supports TLSv1.0 and higher
*
* Policy-Min-TLS-1-2-2019-07
, which only supports TLSv1.2
*
* Valid values: *
*
* Policy-Min-TLS-1-0-2019-07
, which supports TLSv1.0 and higher
*
* Policy-Min-TLS-1-2-2019-07
, which only supports TLSv1.2
*
* The TLS security policy to apply to the HTTPS endpoint of the OpenSearch domain. *
** Valid values: *
*
* Policy-Min-TLS-1-0-2019-07
, which supports TLSv1.0 and higher
*
* Policy-Min-TLS-1-2-2019-07
, which only supports TLSv1.2
*
* Valid values: *
*
* Policy-Min-TLS-1-0-2019-07
, which supports TLSv1.0 and higher
*
* Policy-Min-TLS-1-2-2019-07
, which only supports TLSv1.2
*
* The TLS security policy to apply to the HTTPS endpoint of the OpenSearch domain. *
** Valid values: *
*
* Policy-Min-TLS-1-0-2019-07
, which supports TLSv1.0 and higher
*
* Policy-Min-TLS-1-2-2019-07
, which only supports TLSv1.2
*
* Valid values: *
*
* Policy-Min-TLS-1-0-2019-07
, which supports TLSv1.0 and higher
*
* Policy-Min-TLS-1-2-2019-07
, which only supports TLSv1.2
*