com.amazonaws.services.quicksight.model.DynamicDefaultValue 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;
/**
*
* Defines different defaults to the users or groups based on mapping.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DynamicDefaultValue implements Serializable, Cloneable, StructuredPojo {
/**
*
* The column that contains the username.
*
*/
private ColumnIdentifier userNameColumn;
/**
*
* The column that contains the group name.
*
*/
private ColumnIdentifier groupNameColumn;
/**
*
* The column that contains the default value of each user or group.
*
*/
private ColumnIdentifier defaultValueColumn;
/**
*
* The column that contains the username.
*
*
* @param userNameColumn
* The column that contains the username.
*/
public void setUserNameColumn(ColumnIdentifier userNameColumn) {
this.userNameColumn = userNameColumn;
}
/**
*
* The column that contains the username.
*
*
* @return The column that contains the username.
*/
public ColumnIdentifier getUserNameColumn() {
return this.userNameColumn;
}
/**
*
* The column that contains the username.
*
*
* @param userNameColumn
* The column that contains the username.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DynamicDefaultValue withUserNameColumn(ColumnIdentifier userNameColumn) {
setUserNameColumn(userNameColumn);
return this;
}
/**
*
* The column that contains the group name.
*
*
* @param groupNameColumn
* The column that contains the group name.
*/
public void setGroupNameColumn(ColumnIdentifier groupNameColumn) {
this.groupNameColumn = groupNameColumn;
}
/**
*
* The column that contains the group name.
*
*
* @return The column that contains the group name.
*/
public ColumnIdentifier getGroupNameColumn() {
return this.groupNameColumn;
}
/**
*
* The column that contains the group name.
*
*
* @param groupNameColumn
* The column that contains the group name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DynamicDefaultValue withGroupNameColumn(ColumnIdentifier groupNameColumn) {
setGroupNameColumn(groupNameColumn);
return this;
}
/**
*
* The column that contains the default value of each user or group.
*
*
* @param defaultValueColumn
* The column that contains the default value of each user or group.
*/
public void setDefaultValueColumn(ColumnIdentifier defaultValueColumn) {
this.defaultValueColumn = defaultValueColumn;
}
/**
*
* The column that contains the default value of each user or group.
*
*
* @return The column that contains the default value of each user or group.
*/
public ColumnIdentifier getDefaultValueColumn() {
return this.defaultValueColumn;
}
/**
*
* The column that contains the default value of each user or group.
*
*
* @param defaultValueColumn
* The column that contains the default value of each user or group.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DynamicDefaultValue withDefaultValueColumn(ColumnIdentifier defaultValueColumn) {
setDefaultValueColumn(defaultValueColumn);
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 (getUserNameColumn() != null)
sb.append("UserNameColumn: ").append(getUserNameColumn()).append(",");
if (getGroupNameColumn() != null)
sb.append("GroupNameColumn: ").append(getGroupNameColumn()).append(",");
if (getDefaultValueColumn() != null)
sb.append("DefaultValueColumn: ").append(getDefaultValueColumn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DynamicDefaultValue == false)
return false;
DynamicDefaultValue other = (DynamicDefaultValue) obj;
if (other.getUserNameColumn() == null ^ this.getUserNameColumn() == null)
return false;
if (other.getUserNameColumn() != null && other.getUserNameColumn().equals(this.getUserNameColumn()) == false)
return false;
if (other.getGroupNameColumn() == null ^ this.getGroupNameColumn() == null)
return false;
if (other.getGroupNameColumn() != null && other.getGroupNameColumn().equals(this.getGroupNameColumn()) == false)
return false;
if (other.getDefaultValueColumn() == null ^ this.getDefaultValueColumn() == null)
return false;
if (other.getDefaultValueColumn() != null && other.getDefaultValueColumn().equals(this.getDefaultValueColumn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getUserNameColumn() == null) ? 0 : getUserNameColumn().hashCode());
hashCode = prime * hashCode + ((getGroupNameColumn() == null) ? 0 : getGroupNameColumn().hashCode());
hashCode = prime * hashCode + ((getDefaultValueColumn() == null) ? 0 : getDefaultValueColumn().hashCode());
return hashCode;
}
@Override
public DynamicDefaultValue clone() {
try {
return (DynamicDefaultValue) 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.DynamicDefaultValueMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}