/* * 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.amplifyuibuilder.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Describes a model in a generic data schema. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CodegenGenericDataModel implements Serializable, Cloneable, StructuredPojo { /** ** The fields in the generic data model. *
*/ private java.util.Map* Specifies whether the generic data model is a join table. *
*/ private Boolean isJoinTable; /** ** The primary keys of the generic data model. *
*/ private java.util.List* The fields in the generic data model. *
* * @return The fields in the generic data model. */ public java.util.Map* The fields in the generic data model. *
* * @param fields * The fields in the generic data model. */ public void setFields(java.util.Map* The fields in the generic data model. *
* * @param fields * The fields in the generic data model. * @return Returns a reference to this object so that method calls can be chained together. */ public CodegenGenericDataModel withFields(java.util.Map* Specifies whether the generic data model is a join table. *
* * @param isJoinTable * Specifies whether the generic data model is a join table. */ public void setIsJoinTable(Boolean isJoinTable) { this.isJoinTable = isJoinTable; } /** ** Specifies whether the generic data model is a join table. *
* * @return Specifies whether the generic data model is a join table. */ public Boolean getIsJoinTable() { return this.isJoinTable; } /** ** Specifies whether the generic data model is a join table. *
* * @param isJoinTable * Specifies whether the generic data model is a join table. * @return Returns a reference to this object so that method calls can be chained together. */ public CodegenGenericDataModel withIsJoinTable(Boolean isJoinTable) { setIsJoinTable(isJoinTable); return this; } /** ** Specifies whether the generic data model is a join table. *
* * @return Specifies whether the generic data model is a join table. */ public Boolean isJoinTable() { return this.isJoinTable; } /** ** The primary keys of the generic data model. *
* * @return The primary keys of the generic data model. */ public java.util.List* The primary keys of the generic data model. *
* * @param primaryKeys * The primary keys of the generic data model. */ public void setPrimaryKeys(java.util.Collection* The primary keys of the generic data model. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPrimaryKeys(java.util.Collection)} or {@link #withPrimaryKeys(java.util.Collection)} if you want to * override the existing values. *
* * @param primaryKeys * The primary keys of the generic data model. * @return Returns a reference to this object so that method calls can be chained together. */ public CodegenGenericDataModel withPrimaryKeys(String... primaryKeys) { if (this.primaryKeys == null) { setPrimaryKeys(new java.util.ArrayList* The primary keys of the generic data model. *
* * @param primaryKeys * The primary keys of the generic data model. * @return Returns a reference to this object so that method calls can be chained together. */ public CodegenGenericDataModel withPrimaryKeys(java.util.Collection