com.amazonaws.services.quicksight.model.FolderSummary Maven / Gradle / Ivy
Show all versions of aws-java-sdk-quicksight Show documentation
/*
* Copyright 2019-2024 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.quicksight.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* A summary of information about an existing Amazon QuickSight folder.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class FolderSummary implements Serializable, Cloneable, StructuredPojo {
/**
*
* The Amazon Resource Name (ARN) of the folder.
*
*/
private String arn;
/**
*
* The ID of the folder.
*
*/
private String folderId;
/**
*
* The display name of the folder.
*
*/
private String name;
/**
*
* The type of folder.
*
*/
private String folderType;
/**
*
* The time that the folder was created.
*
*/
private java.util.Date createdTime;
/**
*
* The time that the folder was last updated.
*
*/
private java.util.Date lastUpdatedTime;
/**
*
* The sharing scope of the folder.
*
*/
private String sharingModel;
/**
*
* The Amazon Resource Name (ARN) of the folder.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the folder.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) of the folder.
*
*
* @return The Amazon Resource Name (ARN) of the folder.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) of the folder.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the folder.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FolderSummary withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The ID of the folder.
*
*
* @param folderId
* The ID of the folder.
*/
public void setFolderId(String folderId) {
this.folderId = folderId;
}
/**
*
* The ID of the folder.
*
*
* @return The ID of the folder.
*/
public String getFolderId() {
return this.folderId;
}
/**
*
* The ID of the folder.
*
*
* @param folderId
* The ID of the folder.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FolderSummary withFolderId(String folderId) {
setFolderId(folderId);
return this;
}
/**
*
* The display name of the folder.
*
*
* @param name
* The display name of the folder.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The display name of the folder.
*
*
* @return The display name of the folder.
*/
public String getName() {
return this.name;
}
/**
*
* The display name of the folder.
*
*
* @param name
* The display name of the folder.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FolderSummary withName(String name) {
setName(name);
return this;
}
/**
*
* The type of folder.
*
*
* @param folderType
* The type of folder.
* @see FolderType
*/
public void setFolderType(String folderType) {
this.folderType = folderType;
}
/**
*
* The type of folder.
*
*
* @return The type of folder.
* @see FolderType
*/
public String getFolderType() {
return this.folderType;
}
/**
*
* The type of folder.
*
*
* @param folderType
* The type of folder.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FolderType
*/
public FolderSummary withFolderType(String folderType) {
setFolderType(folderType);
return this;
}
/**
*
* The type of folder.
*
*
* @param folderType
* The type of folder.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FolderType
*/
public FolderSummary withFolderType(FolderType folderType) {
this.folderType = folderType.toString();
return this;
}
/**
*
* The time that the folder was created.
*
*
* @param createdTime
* The time that the folder was created.
*/
public void setCreatedTime(java.util.Date createdTime) {
this.createdTime = createdTime;
}
/**
*
* The time that the folder was created.
*
*
* @return The time that the folder was created.
*/
public java.util.Date getCreatedTime() {
return this.createdTime;
}
/**
*
* The time that the folder was created.
*
*
* @param createdTime
* The time that the folder was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FolderSummary withCreatedTime(java.util.Date createdTime) {
setCreatedTime(createdTime);
return this;
}
/**
*
* The time that the folder was last updated.
*
*
* @param lastUpdatedTime
* The time that the folder was last updated.
*/
public void setLastUpdatedTime(java.util.Date lastUpdatedTime) {
this.lastUpdatedTime = lastUpdatedTime;
}
/**
*
* The time that the folder was last updated.
*
*
* @return The time that the folder was last updated.
*/
public java.util.Date getLastUpdatedTime() {
return this.lastUpdatedTime;
}
/**
*
* The time that the folder was last updated.
*
*
* @param lastUpdatedTime
* The time that the folder was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FolderSummary withLastUpdatedTime(java.util.Date lastUpdatedTime) {
setLastUpdatedTime(lastUpdatedTime);
return this;
}
/**
*
* The sharing scope of the folder.
*
*
* @param sharingModel
* The sharing scope of the folder.
* @see SharingModel
*/
public void setSharingModel(String sharingModel) {
this.sharingModel = sharingModel;
}
/**
*
* The sharing scope of the folder.
*
*
* @return The sharing scope of the folder.
* @see SharingModel
*/
public String getSharingModel() {
return this.sharingModel;
}
/**
*
* The sharing scope of the folder.
*
*
* @param sharingModel
* The sharing scope of the folder.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SharingModel
*/
public FolderSummary withSharingModel(String sharingModel) {
setSharingModel(sharingModel);
return this;
}
/**
*
* The sharing scope of the folder.
*
*
* @param sharingModel
* The sharing scope of the folder.
* @return Returns a reference to this object so that method calls can be chained together.
* @see SharingModel
*/
public FolderSummary withSharingModel(SharingModel sharingModel) {
this.sharingModel = sharingModel.toString();
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 (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getFolderId() != null)
sb.append("FolderId: ").append(getFolderId()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getFolderType() != null)
sb.append("FolderType: ").append(getFolderType()).append(",");
if (getCreatedTime() != null)
sb.append("CreatedTime: ").append(getCreatedTime()).append(",");
if (getLastUpdatedTime() != null)
sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(",");
if (getSharingModel() != null)
sb.append("SharingModel: ").append(getSharingModel());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof FolderSummary == false)
return false;
FolderSummary other = (FolderSummary) obj;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getFolderId() == null ^ this.getFolderId() == null)
return false;
if (other.getFolderId() != null && other.getFolderId().equals(this.getFolderId()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getFolderType() == null ^ this.getFolderType() == null)
return false;
if (other.getFolderType() != null && other.getFolderType().equals(this.getFolderType()) == false)
return false;
if (other.getCreatedTime() == null ^ this.getCreatedTime() == null)
return false;
if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false)
return false;
if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null)
return false;
if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false)
return false;
if (other.getSharingModel() == null ^ this.getSharingModel() == null)
return false;
if (other.getSharingModel() != null && other.getSharingModel().equals(this.getSharingModel()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getFolderId() == null) ? 0 : getFolderId().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getFolderType() == null) ? 0 : getFolderType().hashCode());
hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode());
hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode());
hashCode = prime * hashCode + ((getSharingModel() == null) ? 0 : getSharingModel().hashCode());
return hashCode;
}
@Override
public FolderSummary clone() {
try {
return (FolderSummary) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.quicksight.model.transform.FolderSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}