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

com.amazonaws.services.managedgrafana.model.UpdatePermissionsRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Managed Grafana module holds the client classes that are used for communicating with Amazon Managed Grafana Service

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.managedgrafana.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 UpdatePermissionsRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {

    /**
     * 

* An array of structures that contain the permission updates to make. *

*/ private java.util.List updateInstructionBatch; /** *

* The ID of the workspace to update. *

*/ private String workspaceId; /** *

* An array of structures that contain the permission updates to make. *

* * @return An array of structures that contain the permission updates to make. */ public java.util.List getUpdateInstructionBatch() { return updateInstructionBatch; } /** *

* An array of structures that contain the permission updates to make. *

* * @param updateInstructionBatch * An array of structures that contain the permission updates to make. */ public void setUpdateInstructionBatch(java.util.Collection updateInstructionBatch) { if (updateInstructionBatch == null) { this.updateInstructionBatch = null; return; } this.updateInstructionBatch = new java.util.ArrayList(updateInstructionBatch); } /** *

* An array of structures that contain the permission updates to make. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setUpdateInstructionBatch(java.util.Collection)} or * {@link #withUpdateInstructionBatch(java.util.Collection)} if you want to override the existing values. *

* * @param updateInstructionBatch * An array of structures that contain the permission updates to make. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePermissionsRequest withUpdateInstructionBatch(UpdateInstruction... updateInstructionBatch) { if (this.updateInstructionBatch == null) { setUpdateInstructionBatch(new java.util.ArrayList(updateInstructionBatch.length)); } for (UpdateInstruction ele : updateInstructionBatch) { this.updateInstructionBatch.add(ele); } return this; } /** *

* An array of structures that contain the permission updates to make. *

* * @param updateInstructionBatch * An array of structures that contain the permission updates to make. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePermissionsRequest withUpdateInstructionBatch(java.util.Collection updateInstructionBatch) { setUpdateInstructionBatch(updateInstructionBatch); return this; } /** *

* The ID of the workspace to update. *

* * @param workspaceId * The ID of the workspace to update. */ public void setWorkspaceId(String workspaceId) { this.workspaceId = workspaceId; } /** *

* The ID of the workspace to update. *

* * @return The ID of the workspace to update. */ public String getWorkspaceId() { return this.workspaceId; } /** *

* The ID of the workspace to update. *

* * @param workspaceId * The ID of the workspace to update. * @return Returns a reference to this object so that method calls can be chained together. */ public UpdatePermissionsRequest withWorkspaceId(String workspaceId) { setWorkspaceId(workspaceId); 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 (getUpdateInstructionBatch() != null) sb.append("UpdateInstructionBatch: ").append(getUpdateInstructionBatch()).append(","); if (getWorkspaceId() != null) sb.append("WorkspaceId: ").append(getWorkspaceId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof UpdatePermissionsRequest == false) return false; UpdatePermissionsRequest other = (UpdatePermissionsRequest) obj; if (other.getUpdateInstructionBatch() == null ^ this.getUpdateInstructionBatch() == null) return false; if (other.getUpdateInstructionBatch() != null && other.getUpdateInstructionBatch().equals(this.getUpdateInstructionBatch()) == false) return false; if (other.getWorkspaceId() == null ^ this.getWorkspaceId() == null) return false; if (other.getWorkspaceId() != null && other.getWorkspaceId().equals(this.getWorkspaceId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUpdateInstructionBatch() == null) ? 0 : getUpdateInstructionBatch().hashCode()); hashCode = prime * hashCode + ((getWorkspaceId() == null) ? 0 : getWorkspaceId().hashCode()); return hashCode; } @Override public UpdatePermissionsRequest clone() { return (UpdatePermissionsRequest) super.clone(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy