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

com.amazonaws.services.amplifyuibuilder.model.ThemeValue Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Amplify UI Builder module holds the client classes that are used for communicating with AWS Amplify UI Builder Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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.amplifyuibuilder.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Describes the configuration of a theme's properties. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ThemeValue implements Serializable, Cloneable, StructuredPojo { /** *

* The value of a theme property. *

*/ private String value; /** *

* A list of key-value pairs that define the theme's properties. *

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

* The value of a theme property. *

* * @param value * The value of a theme property. */ public void setValue(String value) { this.value = value; } /** *

* The value of a theme property. *

* * @return The value of a theme property. */ public String getValue() { return this.value; } /** *

* The value of a theme property. *

* * @param value * The value of a theme property. * @return Returns a reference to this object so that method calls can be chained together. */ public ThemeValue withValue(String value) { setValue(value); return this; } /** *

* A list of key-value pairs that define the theme's properties. *

* * @return A list of key-value pairs that define the theme's properties. */ public java.util.List getChildren() { return children; } /** *

* A list of key-value pairs that define the theme's properties. *

* * @param children * A list of key-value pairs that define the theme's properties. */ public void setChildren(java.util.Collection children) { if (children == null) { this.children = null; return; } this.children = new java.util.ArrayList(children); } /** *

* A list of key-value pairs that define the theme's properties. *

*

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

* * @param children * A list of key-value pairs that define the theme's properties. * @return Returns a reference to this object so that method calls can be chained together. */ public ThemeValue withChildren(ThemeValues... children) { if (this.children == null) { setChildren(new java.util.ArrayList(children.length)); } for (ThemeValues ele : children) { this.children.add(ele); } return this; } /** *

* A list of key-value pairs that define the theme's properties. *

* * @param children * A list of key-value pairs that define the theme's properties. * @return Returns a reference to this object so that method calls can be chained together. */ public ThemeValue withChildren(java.util.Collection children) { setChildren(children); 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 (getValue() != null) sb.append("Value: ").append(getValue()).append(","); if (getChildren() != null) sb.append("Children: ").append(getChildren()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThemeValue == false) return false; ThemeValue other = (ThemeValue) obj; if (other.getValue() == null ^ this.getValue() == null) return false; if (other.getValue() != null && other.getValue().equals(this.getValue()) == false) return false; if (other.getChildren() == null ^ this.getChildren() == null) return false; if (other.getChildren() != null && other.getChildren().equals(this.getChildren()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getValue() == null) ? 0 : getValue().hashCode()); hashCode = prime * hashCode + ((getChildren() == null) ? 0 : getChildren().hashCode()); return hashCode; } @Override public ThemeValue clone() { try { return (ThemeValue) 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.amplifyuibuilder.model.transform.ThemeValueMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy