com.amazonaws.services.datazone.model.UpdateDataSourceRequest Maven / Gradle / Ivy
Show all versions of aws-java-sdk-datazoneexternal 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.datazone.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.AmazonWebServiceRequest;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateDataSourceRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The asset forms to be updated as part of the UpdateDataSource
action.
*
*/
private java.util.List assetFormsInput;
/**
*
* The configuration to be updated as part of the UpdateDataSource
action.
*
*/
private DataSourceConfigurationInput configuration;
/**
*
* The description to be updated as part of the UpdateDataSource
action.
*
*/
private String description;
/**
*
* The identifier of the domain in which to update a data source.
*
*/
private String domainIdentifier;
/**
*
* The enable setting to be updated as part of the UpdateDataSource
action.
*
*/
private String enableSetting;
/**
*
* The identifier of the data source to be updated.
*
*/
private String identifier;
/**
*
* The name to be updated as part of the UpdateDataSource
action.
*
*/
private String name;
/**
*
* The publish on import setting to be updated as part of the UpdateDataSource
action.
*
*/
private Boolean publishOnImport;
/**
*
* The recommendation to be updated as part of the UpdateDataSource
action.
*
*/
private RecommendationConfiguration recommendation;
/**
*
* Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data
* source.
*
*/
private Boolean retainPermissionsOnRevokeFailure;
/**
*
* The schedule to be updated as part of the UpdateDataSource
action.
*
*/
private ScheduleConfiguration schedule;
/**
*
* The asset forms to be updated as part of the UpdateDataSource
action.
*
*
* @return The asset forms to be updated as part of the UpdateDataSource
action.
*/
public java.util.List getAssetFormsInput() {
return assetFormsInput;
}
/**
*
* The asset forms to be updated as part of the UpdateDataSource
action.
*
*
* @param assetFormsInput
* The asset forms to be updated as part of the UpdateDataSource
action.
*/
public void setAssetFormsInput(java.util.Collection assetFormsInput) {
if (assetFormsInput == null) {
this.assetFormsInput = null;
return;
}
this.assetFormsInput = new java.util.ArrayList(assetFormsInput);
}
/**
*
* The asset forms to be updated as part of the UpdateDataSource
action.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAssetFormsInput(java.util.Collection)} or {@link #withAssetFormsInput(java.util.Collection)} if you
* want to override the existing values.
*
*
* @param assetFormsInput
* The asset forms to be updated as part of the UpdateDataSource
action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withAssetFormsInput(FormInput... assetFormsInput) {
if (this.assetFormsInput == null) {
setAssetFormsInput(new java.util.ArrayList(assetFormsInput.length));
}
for (FormInput ele : assetFormsInput) {
this.assetFormsInput.add(ele);
}
return this;
}
/**
*
* The asset forms to be updated as part of the UpdateDataSource
action.
*
*
* @param assetFormsInput
* The asset forms to be updated as part of the UpdateDataSource
action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withAssetFormsInput(java.util.Collection assetFormsInput) {
setAssetFormsInput(assetFormsInput);
return this;
}
/**
*
* The configuration to be updated as part of the UpdateDataSource
action.
*
*
* @param configuration
* The configuration to be updated as part of the UpdateDataSource
action.
*/
public void setConfiguration(DataSourceConfigurationInput configuration) {
this.configuration = configuration;
}
/**
*
* The configuration to be updated as part of the UpdateDataSource
action.
*
*
* @return The configuration to be updated as part of the UpdateDataSource
action.
*/
public DataSourceConfigurationInput getConfiguration() {
return this.configuration;
}
/**
*
* The configuration to be updated as part of the UpdateDataSource
action.
*
*
* @param configuration
* The configuration to be updated as part of the UpdateDataSource
action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withConfiguration(DataSourceConfigurationInput configuration) {
setConfiguration(configuration);
return this;
}
/**
*
* The description to be updated as part of the UpdateDataSource
action.
*
*
* @param description
* The description to be updated as part of the UpdateDataSource
action.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* The description to be updated as part of the UpdateDataSource
action.
*
*
* @return The description to be updated as part of the UpdateDataSource
action.
*/
public String getDescription() {
return this.description;
}
/**
*
* The description to be updated as part of the UpdateDataSource
action.
*
*
* @param description
* The description to be updated as part of the UpdateDataSource
action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The identifier of the domain in which to update a data source.
*
*
* @param domainIdentifier
* The identifier of the domain in which to update a data source.
*/
public void setDomainIdentifier(String domainIdentifier) {
this.domainIdentifier = domainIdentifier;
}
/**
*
* The identifier of the domain in which to update a data source.
*
*
* @return The identifier of the domain in which to update a data source.
*/
public String getDomainIdentifier() {
return this.domainIdentifier;
}
/**
*
* The identifier of the domain in which to update a data source.
*
*
* @param domainIdentifier
* The identifier of the domain in which to update a data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withDomainIdentifier(String domainIdentifier) {
setDomainIdentifier(domainIdentifier);
return this;
}
/**
*
* The enable setting to be updated as part of the UpdateDataSource
action.
*
*
* @param enableSetting
* The enable setting to be updated as part of the UpdateDataSource
action.
* @see EnableSetting
*/
public void setEnableSetting(String enableSetting) {
this.enableSetting = enableSetting;
}
/**
*
* The enable setting to be updated as part of the UpdateDataSource
action.
*
*
* @return The enable setting to be updated as part of the UpdateDataSource
action.
* @see EnableSetting
*/
public String getEnableSetting() {
return this.enableSetting;
}
/**
*
* The enable setting to be updated as part of the UpdateDataSource
action.
*
*
* @param enableSetting
* The enable setting to be updated as part of the UpdateDataSource
action.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EnableSetting
*/
public UpdateDataSourceRequest withEnableSetting(String enableSetting) {
setEnableSetting(enableSetting);
return this;
}
/**
*
* The enable setting to be updated as part of the UpdateDataSource
action.
*
*
* @param enableSetting
* The enable setting to be updated as part of the UpdateDataSource
action.
* @return Returns a reference to this object so that method calls can be chained together.
* @see EnableSetting
*/
public UpdateDataSourceRequest withEnableSetting(EnableSetting enableSetting) {
this.enableSetting = enableSetting.toString();
return this;
}
/**
*
* The identifier of the data source to be updated.
*
*
* @param identifier
* The identifier of the data source to be updated.
*/
public void setIdentifier(String identifier) {
this.identifier = identifier;
}
/**
*
* The identifier of the data source to be updated.
*
*
* @return The identifier of the data source to be updated.
*/
public String getIdentifier() {
return this.identifier;
}
/**
*
* The identifier of the data source to be updated.
*
*
* @param identifier
* The identifier of the data source to be updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withIdentifier(String identifier) {
setIdentifier(identifier);
return this;
}
/**
*
* The name to be updated as part of the UpdateDataSource
action.
*
*
* @param name
* The name to be updated as part of the UpdateDataSource
action.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The name to be updated as part of the UpdateDataSource
action.
*
*
* @return The name to be updated as part of the UpdateDataSource
action.
*/
public String getName() {
return this.name;
}
/**
*
* The name to be updated as part of the UpdateDataSource
action.
*
*
* @param name
* The name to be updated as part of the UpdateDataSource
action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withName(String name) {
setName(name);
return this;
}
/**
*
* The publish on import setting to be updated as part of the UpdateDataSource
action.
*
*
* @param publishOnImport
* The publish on import setting to be updated as part of the UpdateDataSource
action.
*/
public void setPublishOnImport(Boolean publishOnImport) {
this.publishOnImport = publishOnImport;
}
/**
*
* The publish on import setting to be updated as part of the UpdateDataSource
action.
*
*
* @return The publish on import setting to be updated as part of the UpdateDataSource
action.
*/
public Boolean getPublishOnImport() {
return this.publishOnImport;
}
/**
*
* The publish on import setting to be updated as part of the UpdateDataSource
action.
*
*
* @param publishOnImport
* The publish on import setting to be updated as part of the UpdateDataSource
action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withPublishOnImport(Boolean publishOnImport) {
setPublishOnImport(publishOnImport);
return this;
}
/**
*
* The publish on import setting to be updated as part of the UpdateDataSource
action.
*
*
* @return The publish on import setting to be updated as part of the UpdateDataSource
action.
*/
public Boolean isPublishOnImport() {
return this.publishOnImport;
}
/**
*
* The recommendation to be updated as part of the UpdateDataSource
action.
*
*
* @param recommendation
* The recommendation to be updated as part of the UpdateDataSource
action.
*/
public void setRecommendation(RecommendationConfiguration recommendation) {
this.recommendation = recommendation;
}
/**
*
* The recommendation to be updated as part of the UpdateDataSource
action.
*
*
* @return The recommendation to be updated as part of the UpdateDataSource
action.
*/
public RecommendationConfiguration getRecommendation() {
return this.recommendation;
}
/**
*
* The recommendation to be updated as part of the UpdateDataSource
action.
*
*
* @param recommendation
* The recommendation to be updated as part of the UpdateDataSource
action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withRecommendation(RecommendationConfiguration recommendation) {
setRecommendation(recommendation);
return this;
}
/**
*
* Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data
* source.
*
*
* @param retainPermissionsOnRevokeFailure
* Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for
* a data source.
*/
public void setRetainPermissionsOnRevokeFailure(Boolean retainPermissionsOnRevokeFailure) {
this.retainPermissionsOnRevokeFailure = retainPermissionsOnRevokeFailure;
}
/**
*
* Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data
* source.
*
*
* @return Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for
* a data source.
*/
public Boolean getRetainPermissionsOnRevokeFailure() {
return this.retainPermissionsOnRevokeFailure;
}
/**
*
* Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data
* source.
*
*
* @param retainPermissionsOnRevokeFailure
* Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for
* a data source.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withRetainPermissionsOnRevokeFailure(Boolean retainPermissionsOnRevokeFailure) {
setRetainPermissionsOnRevokeFailure(retainPermissionsOnRevokeFailure);
return this;
}
/**
*
* Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for a data
* source.
*
*
* @return Specifies that the granted permissions are retained in case of a self-subscribe functionality failure for
* a data source.
*/
public Boolean isRetainPermissionsOnRevokeFailure() {
return this.retainPermissionsOnRevokeFailure;
}
/**
*
* The schedule to be updated as part of the UpdateDataSource
action.
*
*
* @param schedule
* The schedule to be updated as part of the UpdateDataSource
action.
*/
public void setSchedule(ScheduleConfiguration schedule) {
this.schedule = schedule;
}
/**
*
* The schedule to be updated as part of the UpdateDataSource
action.
*
*
* @return The schedule to be updated as part of the UpdateDataSource
action.
*/
public ScheduleConfiguration getSchedule() {
return this.schedule;
}
/**
*
* The schedule to be updated as part of the UpdateDataSource
action.
*
*
* @param schedule
* The schedule to be updated as part of the UpdateDataSource
action.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateDataSourceRequest withSchedule(ScheduleConfiguration schedule) {
setSchedule(schedule);
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 (getAssetFormsInput() != null)
sb.append("AssetFormsInput: ").append("***Sensitive Data Redacted***").append(",");
if (getConfiguration() != null)
sb.append("Configuration: ").append(getConfiguration()).append(",");
if (getDescription() != null)
sb.append("Description: ").append("***Sensitive Data Redacted***").append(",");
if (getDomainIdentifier() != null)
sb.append("DomainIdentifier: ").append(getDomainIdentifier()).append(",");
if (getEnableSetting() != null)
sb.append("EnableSetting: ").append(getEnableSetting()).append(",");
if (getIdentifier() != null)
sb.append("Identifier: ").append(getIdentifier()).append(",");
if (getName() != null)
sb.append("Name: ").append("***Sensitive Data Redacted***").append(",");
if (getPublishOnImport() != null)
sb.append("PublishOnImport: ").append(getPublishOnImport()).append(",");
if (getRecommendation() != null)
sb.append("Recommendation: ").append(getRecommendation()).append(",");
if (getRetainPermissionsOnRevokeFailure() != null)
sb.append("RetainPermissionsOnRevokeFailure: ").append(getRetainPermissionsOnRevokeFailure()).append(",");
if (getSchedule() != null)
sb.append("Schedule: ").append("***Sensitive Data Redacted***");
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateDataSourceRequest == false)
return false;
UpdateDataSourceRequest other = (UpdateDataSourceRequest) obj;
if (other.getAssetFormsInput() == null ^ this.getAssetFormsInput() == null)
return false;
if (other.getAssetFormsInput() != null && other.getAssetFormsInput().equals(this.getAssetFormsInput()) == false)
return false;
if (other.getConfiguration() == null ^ this.getConfiguration() == null)
return false;
if (other.getConfiguration() != null && other.getConfiguration().equals(this.getConfiguration()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getDomainIdentifier() == null ^ this.getDomainIdentifier() == null)
return false;
if (other.getDomainIdentifier() != null && other.getDomainIdentifier().equals(this.getDomainIdentifier()) == false)
return false;
if (other.getEnableSetting() == null ^ this.getEnableSetting() == null)
return false;
if (other.getEnableSetting() != null && other.getEnableSetting().equals(this.getEnableSetting()) == false)
return false;
if (other.getIdentifier() == null ^ this.getIdentifier() == null)
return false;
if (other.getIdentifier() != null && other.getIdentifier().equals(this.getIdentifier()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getPublishOnImport() == null ^ this.getPublishOnImport() == null)
return false;
if (other.getPublishOnImport() != null && other.getPublishOnImport().equals(this.getPublishOnImport()) == false)
return false;
if (other.getRecommendation() == null ^ this.getRecommendation() == null)
return false;
if (other.getRecommendation() != null && other.getRecommendation().equals(this.getRecommendation()) == false)
return false;
if (other.getRetainPermissionsOnRevokeFailure() == null ^ this.getRetainPermissionsOnRevokeFailure() == null)
return false;
if (other.getRetainPermissionsOnRevokeFailure() != null
&& other.getRetainPermissionsOnRevokeFailure().equals(this.getRetainPermissionsOnRevokeFailure()) == false)
return false;
if (other.getSchedule() == null ^ this.getSchedule() == null)
return false;
if (other.getSchedule() != null && other.getSchedule().equals(this.getSchedule()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getAssetFormsInput() == null) ? 0 : getAssetFormsInput().hashCode());
hashCode = prime * hashCode + ((getConfiguration() == null) ? 0 : getConfiguration().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getDomainIdentifier() == null) ? 0 : getDomainIdentifier().hashCode());
hashCode = prime * hashCode + ((getEnableSetting() == null) ? 0 : getEnableSetting().hashCode());
hashCode = prime * hashCode + ((getIdentifier() == null) ? 0 : getIdentifier().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getPublishOnImport() == null) ? 0 : getPublishOnImport().hashCode());
hashCode = prime * hashCode + ((getRecommendation() == null) ? 0 : getRecommendation().hashCode());
hashCode = prime * hashCode + ((getRetainPermissionsOnRevokeFailure() == null) ? 0 : getRetainPermissionsOnRevokeFailure().hashCode());
hashCode = prime * hashCode + ((getSchedule() == null) ? 0 : getSchedule().hashCode());
return hashCode;
}
@Override
public UpdateDataSourceRequest clone() {
return (UpdateDataSourceRequest) super.clone();
}
}