com.amazonaws.services.entityresolution.model.IdNamespaceIdMappingWorkflowProperties Maven / Gradle / Ivy
Show all versions of aws-java-sdk-entityresolution 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.entityresolution.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* An object containing IdMappingType
, ProviderProperties
, and
* RuleBasedProperties
.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class IdNamespaceIdMappingWorkflowProperties implements Serializable, Cloneable, StructuredPojo {
/**
*
* The type of ID mapping.
*
*/
private String idMappingType;
/**
*
* An object which defines any additional configurations required by the provider service.
*
*/
private NamespaceProviderProperties providerProperties;
/**
*
* An object which defines any additional configurations required by rule-based matching.
*
*/
private NamespaceRuleBasedProperties ruleBasedProperties;
/**
*
* The type of ID mapping.
*
*
* @param idMappingType
* The type of ID mapping.
* @see IdMappingType
*/
public void setIdMappingType(String idMappingType) {
this.idMappingType = idMappingType;
}
/**
*
* The type of ID mapping.
*
*
* @return The type of ID mapping.
* @see IdMappingType
*/
public String getIdMappingType() {
return this.idMappingType;
}
/**
*
* The type of ID mapping.
*
*
* @param idMappingType
* The type of ID mapping.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IdMappingType
*/
public IdNamespaceIdMappingWorkflowProperties withIdMappingType(String idMappingType) {
setIdMappingType(idMappingType);
return this;
}
/**
*
* The type of ID mapping.
*
*
* @param idMappingType
* The type of ID mapping.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IdMappingType
*/
public IdNamespaceIdMappingWorkflowProperties withIdMappingType(IdMappingType idMappingType) {
this.idMappingType = idMappingType.toString();
return this;
}
/**
*
* An object which defines any additional configurations required by the provider service.
*
*
* @param providerProperties
* An object which defines any additional configurations required by the provider service.
*/
public void setProviderProperties(NamespaceProviderProperties providerProperties) {
this.providerProperties = providerProperties;
}
/**
*
* An object which defines any additional configurations required by the provider service.
*
*
* @return An object which defines any additional configurations required by the provider service.
*/
public NamespaceProviderProperties getProviderProperties() {
return this.providerProperties;
}
/**
*
* An object which defines any additional configurations required by the provider service.
*
*
* @param providerProperties
* An object which defines any additional configurations required by the provider service.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IdNamespaceIdMappingWorkflowProperties withProviderProperties(NamespaceProviderProperties providerProperties) {
setProviderProperties(providerProperties);
return this;
}
/**
*
* An object which defines any additional configurations required by rule-based matching.
*
*
* @param ruleBasedProperties
* An object which defines any additional configurations required by rule-based matching.
*/
public void setRuleBasedProperties(NamespaceRuleBasedProperties ruleBasedProperties) {
this.ruleBasedProperties = ruleBasedProperties;
}
/**
*
* An object which defines any additional configurations required by rule-based matching.
*
*
* @return An object which defines any additional configurations required by rule-based matching.
*/
public NamespaceRuleBasedProperties getRuleBasedProperties() {
return this.ruleBasedProperties;
}
/**
*
* An object which defines any additional configurations required by rule-based matching.
*
*
* @param ruleBasedProperties
* An object which defines any additional configurations required by rule-based matching.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public IdNamespaceIdMappingWorkflowProperties withRuleBasedProperties(NamespaceRuleBasedProperties ruleBasedProperties) {
setRuleBasedProperties(ruleBasedProperties);
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 (getIdMappingType() != null)
sb.append("IdMappingType: ").append(getIdMappingType()).append(",");
if (getProviderProperties() != null)
sb.append("ProviderProperties: ").append(getProviderProperties()).append(",");
if (getRuleBasedProperties() != null)
sb.append("RuleBasedProperties: ").append(getRuleBasedProperties());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof IdNamespaceIdMappingWorkflowProperties == false)
return false;
IdNamespaceIdMappingWorkflowProperties other = (IdNamespaceIdMappingWorkflowProperties) obj;
if (other.getIdMappingType() == null ^ this.getIdMappingType() == null)
return false;
if (other.getIdMappingType() != null && other.getIdMappingType().equals(this.getIdMappingType()) == false)
return false;
if (other.getProviderProperties() == null ^ this.getProviderProperties() == null)
return false;
if (other.getProviderProperties() != null && other.getProviderProperties().equals(this.getProviderProperties()) == false)
return false;
if (other.getRuleBasedProperties() == null ^ this.getRuleBasedProperties() == null)
return false;
if (other.getRuleBasedProperties() != null && other.getRuleBasedProperties().equals(this.getRuleBasedProperties()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getIdMappingType() == null) ? 0 : getIdMappingType().hashCode());
hashCode = prime * hashCode + ((getProviderProperties() == null) ? 0 : getProviderProperties().hashCode());
hashCode = prime * hashCode + ((getRuleBasedProperties() == null) ? 0 : getRuleBasedProperties().hashCode());
return hashCode;
}
@Override
public IdNamespaceIdMappingWorkflowProperties clone() {
try {
return (IdNamespaceIdMappingWorkflowProperties) 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.entityresolution.model.transform.IdNamespaceIdMappingWorkflowPropertiesMarshaller.getInstance().marshall(this,
protocolMarshaller);
}
}