com.amazonaws.services.quicksight.model.LineChartMarkerStyleSettings 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;
/**
*
* Marker styles options for a line series in LineChartVisual
.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class LineChartMarkerStyleSettings implements Serializable, Cloneable, StructuredPojo {
/**
*
* Configuration option that determines whether to show the markers in the series.
*
*/
private String markerVisibility;
/**
*
* Shape option for markers in the series.
*
*
* -
*
* CIRCLE
: Show marker as a circle.
*
*
* -
*
* TRIANGLE
: Show marker as a triangle.
*
*
* -
*
* SQUARE
: Show marker as a square.
*
*
* -
*
* DIAMOND
: Show marker as a diamond.
*
*
* -
*
* ROUNDED_SQUARE
: Show marker as a rounded square.
*
*
*
*/
private String markerShape;
/**
*
* Size of marker in the series.
*
*/
private String markerSize;
/**
*
* Color of marker in the series.
*
*/
private String markerColor;
/**
*
* Configuration option that determines whether to show the markers in the series.
*
*
* @param markerVisibility
* Configuration option that determines whether to show the markers in the series.
* @see Visibility
*/
public void setMarkerVisibility(String markerVisibility) {
this.markerVisibility = markerVisibility;
}
/**
*
* Configuration option that determines whether to show the markers in the series.
*
*
* @return Configuration option that determines whether to show the markers in the series.
* @see Visibility
*/
public String getMarkerVisibility() {
return this.markerVisibility;
}
/**
*
* Configuration option that determines whether to show the markers in the series.
*
*
* @param markerVisibility
* Configuration option that determines whether to show the markers in the series.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Visibility
*/
public LineChartMarkerStyleSettings withMarkerVisibility(String markerVisibility) {
setMarkerVisibility(markerVisibility);
return this;
}
/**
*
* Configuration option that determines whether to show the markers in the series.
*
*
* @param markerVisibility
* Configuration option that determines whether to show the markers in the series.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Visibility
*/
public LineChartMarkerStyleSettings withMarkerVisibility(Visibility markerVisibility) {
this.markerVisibility = markerVisibility.toString();
return this;
}
/**
*
* Shape option for markers in the series.
*
*
* -
*
* CIRCLE
: Show marker as a circle.
*
*
* -
*
* TRIANGLE
: Show marker as a triangle.
*
*
* -
*
* SQUARE
: Show marker as a square.
*
*
* -
*
* DIAMOND
: Show marker as a diamond.
*
*
* -
*
* ROUNDED_SQUARE
: Show marker as a rounded square.
*
*
*
*
* @param markerShape
* Shape option for markers in the series.
*
* -
*
* CIRCLE
: Show marker as a circle.
*
*
* -
*
* TRIANGLE
: Show marker as a triangle.
*
*
* -
*
* SQUARE
: Show marker as a square.
*
*
* -
*
* DIAMOND
: Show marker as a diamond.
*
*
* -
*
* ROUNDED_SQUARE
: Show marker as a rounded square.
*
*
* @see LineChartMarkerShape
*/
public void setMarkerShape(String markerShape) {
this.markerShape = markerShape;
}
/**
*
* Shape option for markers in the series.
*
*
* -
*
* CIRCLE
: Show marker as a circle.
*
*
* -
*
* TRIANGLE
: Show marker as a triangle.
*
*
* -
*
* SQUARE
: Show marker as a square.
*
*
* -
*
* DIAMOND
: Show marker as a diamond.
*
*
* -
*
* ROUNDED_SQUARE
: Show marker as a rounded square.
*
*
*
*
* @return Shape option for markers in the series.
*
* -
*
* CIRCLE
: Show marker as a circle.
*
*
* -
*
* TRIANGLE
: Show marker as a triangle.
*
*
* -
*
* SQUARE
: Show marker as a square.
*
*
* -
*
* DIAMOND
: Show marker as a diamond.
*
*
* -
*
* ROUNDED_SQUARE
: Show marker as a rounded square.
*
*
* @see LineChartMarkerShape
*/
public String getMarkerShape() {
return this.markerShape;
}
/**
*
* Shape option for markers in the series.
*
*
* -
*
* CIRCLE
: Show marker as a circle.
*
*
* -
*
* TRIANGLE
: Show marker as a triangle.
*
*
* -
*
* SQUARE
: Show marker as a square.
*
*
* -
*
* DIAMOND
: Show marker as a diamond.
*
*
* -
*
* ROUNDED_SQUARE
: Show marker as a rounded square.
*
*
*
*
* @param markerShape
* Shape option for markers in the series.
*
* -
*
* CIRCLE
: Show marker as a circle.
*
*
* -
*
* TRIANGLE
: Show marker as a triangle.
*
*
* -
*
* SQUARE
: Show marker as a square.
*
*
* -
*
* DIAMOND
: Show marker as a diamond.
*
*
* -
*
* ROUNDED_SQUARE
: Show marker as a rounded square.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see LineChartMarkerShape
*/
public LineChartMarkerStyleSettings withMarkerShape(String markerShape) {
setMarkerShape(markerShape);
return this;
}
/**
*
* Shape option for markers in the series.
*
*
* -
*
* CIRCLE
: Show marker as a circle.
*
*
* -
*
* TRIANGLE
: Show marker as a triangle.
*
*
* -
*
* SQUARE
: Show marker as a square.
*
*
* -
*
* DIAMOND
: Show marker as a diamond.
*
*
* -
*
* ROUNDED_SQUARE
: Show marker as a rounded square.
*
*
*
*
* @param markerShape
* Shape option for markers in the series.
*
* -
*
* CIRCLE
: Show marker as a circle.
*
*
* -
*
* TRIANGLE
: Show marker as a triangle.
*
*
* -
*
* SQUARE
: Show marker as a square.
*
*
* -
*
* DIAMOND
: Show marker as a diamond.
*
*
* -
*
* ROUNDED_SQUARE
: Show marker as a rounded square.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see LineChartMarkerShape
*/
public LineChartMarkerStyleSettings withMarkerShape(LineChartMarkerShape markerShape) {
this.markerShape = markerShape.toString();
return this;
}
/**
*
* Size of marker in the series.
*
*
* @param markerSize
* Size of marker in the series.
*/
public void setMarkerSize(String markerSize) {
this.markerSize = markerSize;
}
/**
*
* Size of marker in the series.
*
*
* @return Size of marker in the series.
*/
public String getMarkerSize() {
return this.markerSize;
}
/**
*
* Size of marker in the series.
*
*
* @param markerSize
* Size of marker in the series.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LineChartMarkerStyleSettings withMarkerSize(String markerSize) {
setMarkerSize(markerSize);
return this;
}
/**
*
* Color of marker in the series.
*
*
* @param markerColor
* Color of marker in the series.
*/
public void setMarkerColor(String markerColor) {
this.markerColor = markerColor;
}
/**
*
* Color of marker in the series.
*
*
* @return Color of marker in the series.
*/
public String getMarkerColor() {
return this.markerColor;
}
/**
*
* Color of marker in the series.
*
*
* @param markerColor
* Color of marker in the series.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LineChartMarkerStyleSettings withMarkerColor(String markerColor) {
setMarkerColor(markerColor);
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 (getMarkerVisibility() != null)
sb.append("MarkerVisibility: ").append(getMarkerVisibility()).append(",");
if (getMarkerShape() != null)
sb.append("MarkerShape: ").append(getMarkerShape()).append(",");
if (getMarkerSize() != null)
sb.append("MarkerSize: ").append(getMarkerSize()).append(",");
if (getMarkerColor() != null)
sb.append("MarkerColor: ").append(getMarkerColor());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof LineChartMarkerStyleSettings == false)
return false;
LineChartMarkerStyleSettings other = (LineChartMarkerStyleSettings) obj;
if (other.getMarkerVisibility() == null ^ this.getMarkerVisibility() == null)
return false;
if (other.getMarkerVisibility() != null && other.getMarkerVisibility().equals(this.getMarkerVisibility()) == false)
return false;
if (other.getMarkerShape() == null ^ this.getMarkerShape() == null)
return false;
if (other.getMarkerShape() != null && other.getMarkerShape().equals(this.getMarkerShape()) == false)
return false;
if (other.getMarkerSize() == null ^ this.getMarkerSize() == null)
return false;
if (other.getMarkerSize() != null && other.getMarkerSize().equals(this.getMarkerSize()) == false)
return false;
if (other.getMarkerColor() == null ^ this.getMarkerColor() == null)
return false;
if (other.getMarkerColor() != null && other.getMarkerColor().equals(this.getMarkerColor()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getMarkerVisibility() == null) ? 0 : getMarkerVisibility().hashCode());
hashCode = prime * hashCode + ((getMarkerShape() == null) ? 0 : getMarkerShape().hashCode());
hashCode = prime * hashCode + ((getMarkerSize() == null) ? 0 : getMarkerSize().hashCode());
hashCode = prime * hashCode + ((getMarkerColor() == null) ? 0 : getMarkerColor().hashCode());
return hashCode;
}
@Override
public LineChartMarkerStyleSettings clone() {
try {
return (LineChartMarkerStyleSettings) 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.LineChartMarkerStyleSettingsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}