/* * Copyright 2010-2018 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.ec2.model; import java.io.Serializable; import com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.Request; import com.amazonaws.services.ec2.model.transform.ModifyVpcEndpointRequestMarshaller; /** * Container for the parameters to the {@link com.amazonaws.services.ec2.AmazonEC2#modifyVpcEndpoint(ModifyVpcEndpointRequest) ModifyVpcEndpoint operation}. *
* Modifies attributes of a specified VPC endpoint. You can modify the * policy associated with the endpoint, and you can add and remove route * tables associated with the endpoint. *
* * @see com.amazonaws.services.ec2.AmazonEC2#modifyVpcEndpoint(ModifyVpcEndpointRequest) */ public class ModifyVpcEndpointRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequesttrue
to reset the policy document to the default
* policy. The default policy allows access to the service.
*/
private Boolean resetPolicy;
/**
* A policy document to attach to the endpoint. The policy must be in
* valid JSON format.
*/
private String policyDocument;
/**
* One or more route tables IDs to associate with the endpoint.
*/
private com.amazonaws.internal.ListWithAutoConstructFlag
* Returns a reference to this object so that method calls can be chained together.
*
* @param vpcEndpointId The ID of the endpoint.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyVpcEndpointRequest withVpcEndpointId(String vpcEndpointId) {
this.vpcEndpointId = vpcEndpointId;
return this;
}
/**
* Specify true
to reset the policy document to the default
* policy. The default policy allows access to the service.
*
* @return Specify true
to reset the policy document to the default
* policy. The default policy allows access to the service.
*/
public Boolean isResetPolicy() {
return resetPolicy;
}
/**
* Specify true
to reset the policy document to the default
* policy. The default policy allows access to the service.
*
* @param resetPolicy Specify true
to reset the policy document to the default
* policy. The default policy allows access to the service.
*/
public void setResetPolicy(Boolean resetPolicy) {
this.resetPolicy = resetPolicy;
}
/**
* Specify true
to reset the policy document to the default
* policy. The default policy allows access to the service.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param resetPolicy Specify true
to reset the policy document to the default
* policy. The default policy allows access to the service.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyVpcEndpointRequest withResetPolicy(Boolean resetPolicy) {
this.resetPolicy = resetPolicy;
return this;
}
/**
* Specify true
to reset the policy document to the default
* policy. The default policy allows access to the service.
*
* @return Specify true
to reset the policy document to the default
* policy. The default policy allows access to the service.
*/
public Boolean getResetPolicy() {
return resetPolicy;
}
/**
* A policy document to attach to the endpoint. The policy must be in
* valid JSON format.
*
* @return A policy document to attach to the endpoint. The policy must be in
* valid JSON format.
*/
public String getPolicyDocument() {
return policyDocument;
}
/**
* A policy document to attach to the endpoint. The policy must be in
* valid JSON format.
*
* @param policyDocument A policy document to attach to the endpoint. The policy must be in
* valid JSON format.
*/
public void setPolicyDocument(String policyDocument) {
this.policyDocument = policyDocument;
}
/**
* A policy document to attach to the endpoint. The policy must be in
* valid JSON format.
*
* Returns a reference to this object so that method calls can be chained together.
*
* @param policyDocument A policy document to attach to the endpoint. The policy must be in
* valid JSON format.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyVpcEndpointRequest withPolicyDocument(String policyDocument) {
this.policyDocument = policyDocument;
return this;
}
/**
* One or more route tables IDs to associate with the endpoint.
*
* @return One or more route tables IDs to associate with the endpoint.
*/
public java.util.List
* Returns a reference to this object so that method calls can be chained together.
*
* @param addRouteTableIds One or more route tables IDs to associate with the endpoint.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyVpcEndpointRequest withAddRouteTableIds(String... addRouteTableIds) {
if (getAddRouteTableIds() == null) setAddRouteTableIds(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param addRouteTableIds One or more route tables IDs to associate with the endpoint.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyVpcEndpointRequest withAddRouteTableIds(java.util.Collection
* Returns a reference to this object so that method calls can be chained together.
*
* @param removeRouteTableIds One or more route table IDs to disassociate from the endpoint.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyVpcEndpointRequest withRemoveRouteTableIds(String... removeRouteTableIds) {
if (getRemoveRouteTableIds() == null) setRemoveRouteTableIds(new java.util.ArrayList
* Returns a reference to this object so that method calls can be chained together.
*
* @param removeRouteTableIds One or more route table IDs to disassociate from the endpoint.
*
* @return A reference to this updated object so that method calls can be chained
* together.
*/
public ModifyVpcEndpointRequest withRemoveRouteTableIds(java.util.Collection