@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CodegenGenericDataRelationshipType extends Object implements Serializable, Cloneable, StructuredPojo
Describes the relationship between generic data models.
Constructor and Description |
---|
CodegenGenericDataRelationshipType() |
Modifier and Type | Method and Description |
---|---|
CodegenGenericDataRelationshipType |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAssociatedFields()
The associated fields of the data relationship.
|
String |
getBelongsToFieldOnRelatedModel()
The value of the
belongsTo field on the related data model. |
Boolean |
getCanUnlinkAssociatedModel()
Specifies whether the relationship can unlink the associated model.
|
Boolean |
getIsHasManyIndex()
Specifies whether the
@index directive is supported for a hasMany data relationship. |
String |
getRelatedJoinFieldName()
The name of the related join field in the data relationship.
|
String |
getRelatedJoinTableName()
The name of the related join table in the data relationship.
|
List<String> |
getRelatedModelFields()
The related model fields in the data relationship.
|
String |
getRelatedModelName()
The name of the related model in the data relationship.
|
String |
getType()
The data relationship type.
|
int |
hashCode() |
Boolean |
isCanUnlinkAssociatedModel()
Specifies whether the relationship can unlink the associated model.
|
Boolean |
isHasManyIndex()
Specifies whether the
@index directive is supported for a hasMany data relationship. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAssociatedFields(Collection<String> associatedFields)
The associated fields of the data relationship.
|
void |
setBelongsToFieldOnRelatedModel(String belongsToFieldOnRelatedModel)
The value of the
belongsTo field on the related data model. |
void |
setCanUnlinkAssociatedModel(Boolean canUnlinkAssociatedModel)
Specifies whether the relationship can unlink the associated model.
|
void |
setIsHasManyIndex(Boolean isHasManyIndex)
Specifies whether the
@index directive is supported for a hasMany data relationship. |
void |
setRelatedJoinFieldName(String relatedJoinFieldName)
The name of the related join field in the data relationship.
|
void |
setRelatedJoinTableName(String relatedJoinTableName)
The name of the related join table in the data relationship.
|
void |
setRelatedModelFields(Collection<String> relatedModelFields)
The related model fields in the data relationship.
|
void |
setRelatedModelName(String relatedModelName)
The name of the related model in the data relationship.
|
void |
setType(String type)
The data relationship type.
|
String |
toString()
Returns a string representation of this object.
|
CodegenGenericDataRelationshipType |
withAssociatedFields(Collection<String> associatedFields)
The associated fields of the data relationship.
|
CodegenGenericDataRelationshipType |
withAssociatedFields(String... associatedFields)
The associated fields of the data relationship.
|
CodegenGenericDataRelationshipType |
withBelongsToFieldOnRelatedModel(String belongsToFieldOnRelatedModel)
The value of the
belongsTo field on the related data model. |
CodegenGenericDataRelationshipType |
withCanUnlinkAssociatedModel(Boolean canUnlinkAssociatedModel)
Specifies whether the relationship can unlink the associated model.
|
CodegenGenericDataRelationshipType |
withIsHasManyIndex(Boolean isHasManyIndex)
Specifies whether the
@index directive is supported for a hasMany data relationship. |
CodegenGenericDataRelationshipType |
withRelatedJoinFieldName(String relatedJoinFieldName)
The name of the related join field in the data relationship.
|
CodegenGenericDataRelationshipType |
withRelatedJoinTableName(String relatedJoinTableName)
The name of the related join table in the data relationship.
|
CodegenGenericDataRelationshipType |
withRelatedModelFields(Collection<String> relatedModelFields)
The related model fields in the data relationship.
|
CodegenGenericDataRelationshipType |
withRelatedModelFields(String... relatedModelFields)
The related model fields in the data relationship.
|
CodegenGenericDataRelationshipType |
withRelatedModelName(String relatedModelName)
The name of the related model in the data relationship.
|
CodegenGenericDataRelationshipType |
withType(GenericDataRelationshipType type)
The data relationship type.
|
CodegenGenericDataRelationshipType |
withType(String type)
The data relationship type.
|
public void setType(String type)
The data relationship type.
type
- The data relationship type.GenericDataRelationshipType
public String getType()
The data relationship type.
GenericDataRelationshipType
public CodegenGenericDataRelationshipType withType(String type)
The data relationship type.
type
- The data relationship type.GenericDataRelationshipType
public CodegenGenericDataRelationshipType withType(GenericDataRelationshipType type)
The data relationship type.
type
- The data relationship type.GenericDataRelationshipType
public void setRelatedModelName(String relatedModelName)
The name of the related model in the data relationship.
relatedModelName
- The name of the related model in the data relationship.public String getRelatedModelName()
The name of the related model in the data relationship.
public CodegenGenericDataRelationshipType withRelatedModelName(String relatedModelName)
The name of the related model in the data relationship.
relatedModelName
- The name of the related model in the data relationship.public List<String> getRelatedModelFields()
The related model fields in the data relationship.
public void setRelatedModelFields(Collection<String> relatedModelFields)
The related model fields in the data relationship.
relatedModelFields
- The related model fields in the data relationship.public CodegenGenericDataRelationshipType withRelatedModelFields(String... relatedModelFields)
The related model fields in the data relationship.
NOTE: This method appends the values to the existing list (if any). Use
setRelatedModelFields(java.util.Collection)
or withRelatedModelFields(java.util.Collection)
if
you want to override the existing values.
relatedModelFields
- The related model fields in the data relationship.public CodegenGenericDataRelationshipType withRelatedModelFields(Collection<String> relatedModelFields)
The related model fields in the data relationship.
relatedModelFields
- The related model fields in the data relationship.public void setCanUnlinkAssociatedModel(Boolean canUnlinkAssociatedModel)
Specifies whether the relationship can unlink the associated model.
canUnlinkAssociatedModel
- Specifies whether the relationship can unlink the associated model.public Boolean getCanUnlinkAssociatedModel()
Specifies whether the relationship can unlink the associated model.
public CodegenGenericDataRelationshipType withCanUnlinkAssociatedModel(Boolean canUnlinkAssociatedModel)
Specifies whether the relationship can unlink the associated model.
canUnlinkAssociatedModel
- Specifies whether the relationship can unlink the associated model.public Boolean isCanUnlinkAssociatedModel()
Specifies whether the relationship can unlink the associated model.
public void setRelatedJoinFieldName(String relatedJoinFieldName)
The name of the related join field in the data relationship.
relatedJoinFieldName
- The name of the related join field in the data relationship.public String getRelatedJoinFieldName()
The name of the related join field in the data relationship.
public CodegenGenericDataRelationshipType withRelatedJoinFieldName(String relatedJoinFieldName)
The name of the related join field in the data relationship.
relatedJoinFieldName
- The name of the related join field in the data relationship.public void setRelatedJoinTableName(String relatedJoinTableName)
The name of the related join table in the data relationship.
relatedJoinTableName
- The name of the related join table in the data relationship.public String getRelatedJoinTableName()
The name of the related join table in the data relationship.
public CodegenGenericDataRelationshipType withRelatedJoinTableName(String relatedJoinTableName)
The name of the related join table in the data relationship.
relatedJoinTableName
- The name of the related join table in the data relationship.public void setBelongsToFieldOnRelatedModel(String belongsToFieldOnRelatedModel)
The value of the belongsTo
field on the related data model.
belongsToFieldOnRelatedModel
- The value of the belongsTo
field on the related data model.public String getBelongsToFieldOnRelatedModel()
The value of the belongsTo
field on the related data model.
belongsTo
field on the related data model.public CodegenGenericDataRelationshipType withBelongsToFieldOnRelatedModel(String belongsToFieldOnRelatedModel)
The value of the belongsTo
field on the related data model.
belongsToFieldOnRelatedModel
- The value of the belongsTo
field on the related data model.public List<String> getAssociatedFields()
The associated fields of the data relationship.
public void setAssociatedFields(Collection<String> associatedFields)
The associated fields of the data relationship.
associatedFields
- The associated fields of the data relationship.public CodegenGenericDataRelationshipType withAssociatedFields(String... associatedFields)
The associated fields of the data relationship.
NOTE: This method appends the values to the existing list (if any). Use
setAssociatedFields(java.util.Collection)
or withAssociatedFields(java.util.Collection)
if you
want to override the existing values.
associatedFields
- The associated fields of the data relationship.public CodegenGenericDataRelationshipType withAssociatedFields(Collection<String> associatedFields)
The associated fields of the data relationship.
associatedFields
- The associated fields of the data relationship.public void setIsHasManyIndex(Boolean isHasManyIndex)
Specifies whether the @index
directive is supported for a hasMany
data relationship.
isHasManyIndex
- Specifies whether the @index
directive is supported for a hasMany
data
relationship.public Boolean getIsHasManyIndex()
Specifies whether the @index
directive is supported for a hasMany
data relationship.
@index
directive is supported for a hasMany
data
relationship.public CodegenGenericDataRelationshipType withIsHasManyIndex(Boolean isHasManyIndex)
Specifies whether the @index
directive is supported for a hasMany
data relationship.
isHasManyIndex
- Specifies whether the @index
directive is supported for a hasMany
data
relationship.public Boolean isHasManyIndex()
Specifies whether the @index
directive is supported for a hasMany
data relationship.
@index
directive is supported for a hasMany
data
relationship.public String toString()
toString
in class Object
Object.toString()
public CodegenGenericDataRelationshipType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.