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

com.amazonaws.services.elasticfilesystem.model.PutFileSystemPolicyRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Elastic File System module holds the client classes that are used for communicating with Amazon Elastic File System

There is a newer version: 1.12.780
Show newest version
/*
 * 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.elasticfilesystem.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 PutFileSystemPolicyRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* The ID of the EFS file system that you want to create or update the FileSystemPolicy for. *

*/ private String fileSystemId; /** *

* The FileSystemPolicy that you're creating. Accepts a JSON formatted policy definition. EFS file * system policies have a 20,000 character limit. To find out more about the elements that make up a file system * policy, see EFS Resource-based Policies. *

*/ private String policy; /** *

* (Optional) A boolean that specifies whether or not to bypass the FileSystemPolicy lockout safety * check. The lockout safety check determines whether the policy in the request will lock out, or prevent, the IAM * principal that is making the request from making future PutFileSystemPolicy requests on this file * system. Set BypassPolicyLockoutSafetyCheck to True only when you intend to prevent the * IAM principal that is making the request from making subsequent PutFileSystemPolicy requests on this * file system. The default value is False. *

*/ private Boolean bypassPolicyLockoutSafetyCheck; /** *

* The ID of the EFS file system that you want to create or update the FileSystemPolicy for. *

* * @param fileSystemId * The ID of the EFS file system that you want to create or update the FileSystemPolicy for. */ public void setFileSystemId(String fileSystemId) { this.fileSystemId = fileSystemId; } /** *

* The ID of the EFS file system that you want to create or update the FileSystemPolicy for. *

* * @return The ID of the EFS file system that you want to create or update the FileSystemPolicy for. */ public String getFileSystemId() { return this.fileSystemId; } /** *

* The ID of the EFS file system that you want to create or update the FileSystemPolicy for. *

* * @param fileSystemId * The ID of the EFS file system that you want to create or update the FileSystemPolicy for. * @return Returns a reference to this object so that method calls can be chained together. */ public PutFileSystemPolicyRequest withFileSystemId(String fileSystemId) { setFileSystemId(fileSystemId); return this; } /** *

* The FileSystemPolicy that you're creating. Accepts a JSON formatted policy definition. EFS file * system policies have a 20,000 character limit. To find out more about the elements that make up a file system * policy, see EFS Resource-based Policies. *

* * @param policy * The FileSystemPolicy that you're creating. Accepts a JSON formatted policy definition. EFS * file system policies have a 20,000 character limit. To find out more about the elements that make up a * file system policy, see EFS Resource-based Policies. */ public void setPolicy(String policy) { this.policy = policy; } /** *

* The FileSystemPolicy that you're creating. Accepts a JSON formatted policy definition. EFS file * system policies have a 20,000 character limit. To find out more about the elements that make up a file system * policy, see EFS Resource-based Policies. *

* * @return The FileSystemPolicy that you're creating. Accepts a JSON formatted policy definition. EFS * file system policies have a 20,000 character limit. To find out more about the elements that make up a * file system policy, see EFS Resource-based Policies. */ public String getPolicy() { return this.policy; } /** *

* The FileSystemPolicy that you're creating. Accepts a JSON formatted policy definition. EFS file * system policies have a 20,000 character limit. To find out more about the elements that make up a file system * policy, see EFS Resource-based Policies. *

* * @param policy * The FileSystemPolicy that you're creating. Accepts a JSON formatted policy definition. EFS * file system policies have a 20,000 character limit. To find out more about the elements that make up a * file system policy, see EFS Resource-based Policies. * @return Returns a reference to this object so that method calls can be chained together. */ public PutFileSystemPolicyRequest withPolicy(String policy) { setPolicy(policy); return this; } /** *

* (Optional) A boolean that specifies whether or not to bypass the FileSystemPolicy lockout safety * check. The lockout safety check determines whether the policy in the request will lock out, or prevent, the IAM * principal that is making the request from making future PutFileSystemPolicy requests on this file * system. Set BypassPolicyLockoutSafetyCheck to True only when you intend to prevent the * IAM principal that is making the request from making subsequent PutFileSystemPolicy requests on this * file system. The default value is False. *

* * @param bypassPolicyLockoutSafetyCheck * (Optional) A boolean that specifies whether or not to bypass the FileSystemPolicy lockout * safety check. The lockout safety check determines whether the policy in the request will lock out, or * prevent, the IAM principal that is making the request from making future PutFileSystemPolicy * requests on this file system. Set BypassPolicyLockoutSafetyCheck to True only * when you intend to prevent the IAM principal that is making the request from making subsequent * PutFileSystemPolicy requests on this file system. The default value is False. */ public void setBypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck) { this.bypassPolicyLockoutSafetyCheck = bypassPolicyLockoutSafetyCheck; } /** *

* (Optional) A boolean that specifies whether or not to bypass the FileSystemPolicy lockout safety * check. The lockout safety check determines whether the policy in the request will lock out, or prevent, the IAM * principal that is making the request from making future PutFileSystemPolicy requests on this file * system. Set BypassPolicyLockoutSafetyCheck to True only when you intend to prevent the * IAM principal that is making the request from making subsequent PutFileSystemPolicy requests on this * file system. The default value is False. *

* * @return (Optional) A boolean that specifies whether or not to bypass the FileSystemPolicy lockout * safety check. The lockout safety check determines whether the policy in the request will lock out, or * prevent, the IAM principal that is making the request from making future PutFileSystemPolicy * requests on this file system. Set BypassPolicyLockoutSafetyCheck to True only * when you intend to prevent the IAM principal that is making the request from making subsequent * PutFileSystemPolicy requests on this file system. The default value is False. */ public Boolean getBypassPolicyLockoutSafetyCheck() { return this.bypassPolicyLockoutSafetyCheck; } /** *

* (Optional) A boolean that specifies whether or not to bypass the FileSystemPolicy lockout safety * check. The lockout safety check determines whether the policy in the request will lock out, or prevent, the IAM * principal that is making the request from making future PutFileSystemPolicy requests on this file * system. Set BypassPolicyLockoutSafetyCheck to True only when you intend to prevent the * IAM principal that is making the request from making subsequent PutFileSystemPolicy requests on this * file system. The default value is False. *

* * @param bypassPolicyLockoutSafetyCheck * (Optional) A boolean that specifies whether or not to bypass the FileSystemPolicy lockout * safety check. The lockout safety check determines whether the policy in the request will lock out, or * prevent, the IAM principal that is making the request from making future PutFileSystemPolicy * requests on this file system. Set BypassPolicyLockoutSafetyCheck to True only * when you intend to prevent the IAM principal that is making the request from making subsequent * PutFileSystemPolicy requests on this file system. The default value is False. * @return Returns a reference to this object so that method calls can be chained together. */ public PutFileSystemPolicyRequest withBypassPolicyLockoutSafetyCheck(Boolean bypassPolicyLockoutSafetyCheck) { setBypassPolicyLockoutSafetyCheck(bypassPolicyLockoutSafetyCheck); return this; } /** *

* (Optional) A boolean that specifies whether or not to bypass the FileSystemPolicy lockout safety * check. The lockout safety check determines whether the policy in the request will lock out, or prevent, the IAM * principal that is making the request from making future PutFileSystemPolicy requests on this file * system. Set BypassPolicyLockoutSafetyCheck to True only when you intend to prevent the * IAM principal that is making the request from making subsequent PutFileSystemPolicy requests on this * file system. The default value is False. *

* * @return (Optional) A boolean that specifies whether or not to bypass the FileSystemPolicy lockout * safety check. The lockout safety check determines whether the policy in the request will lock out, or * prevent, the IAM principal that is making the request from making future PutFileSystemPolicy * requests on this file system. Set BypassPolicyLockoutSafetyCheck to True only * when you intend to prevent the IAM principal that is making the request from making subsequent * PutFileSystemPolicy requests on this file system. The default value is False. */ public Boolean isBypassPolicyLockoutSafetyCheck() { return this.bypassPolicyLockoutSafetyCheck; } /** * 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 (getFileSystemId() != null) sb.append("FileSystemId: ").append(getFileSystemId()).append(","); if (getPolicy() != null) sb.append("Policy: ").append(getPolicy()).append(","); if (getBypassPolicyLockoutSafetyCheck() != null) sb.append("BypassPolicyLockoutSafetyCheck: ").append(getBypassPolicyLockoutSafetyCheck()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof PutFileSystemPolicyRequest == false) return false; PutFileSystemPolicyRequest other = (PutFileSystemPolicyRequest) obj; if (other.getFileSystemId() == null ^ this.getFileSystemId() == null) return false; if (other.getFileSystemId() != null && other.getFileSystemId().equals(this.getFileSystemId()) == false) return false; if (other.getPolicy() == null ^ this.getPolicy() == null) return false; if (other.getPolicy() != null && other.getPolicy().equals(this.getPolicy()) == false) return false; if (other.getBypassPolicyLockoutSafetyCheck() == null ^ this.getBypassPolicyLockoutSafetyCheck() == null) return false; if (other.getBypassPolicyLockoutSafetyCheck() != null && other.getBypassPolicyLockoutSafetyCheck().equals(this.getBypassPolicyLockoutSafetyCheck()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFileSystemId() == null) ? 0 : getFileSystemId().hashCode()); hashCode = prime * hashCode + ((getPolicy() == null) ? 0 : getPolicy().hashCode()); hashCode = prime * hashCode + ((getBypassPolicyLockoutSafetyCheck() == null) ? 0 : getBypassPolicyLockoutSafetyCheck().hashCode()); return hashCode; } @Override public PutFileSystemPolicyRequest clone() { return (PutFileSystemPolicyRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy