software.amazon.awssdk.services.sagemaker.model.DescribeDataQualityJobDefinitionResponse Maven / Gradle / Ivy
Show all versions of sagemaker Show documentation
/*
* Copyright 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 software.amazon.awssdk.services.sagemaker.model;
import java.beans.Transient;
import java.time.Instant;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*/
@Generated("software.amazon.awssdk:codegen")
public final class DescribeDataQualityJobDefinitionResponse extends SageMakerResponse implements
ToCopyableBuilder {
private static final SdkField JOB_DEFINITION_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("JobDefinitionArn").getter(getter(DescribeDataQualityJobDefinitionResponse::jobDefinitionArn))
.setter(setter(Builder::jobDefinitionArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("JobDefinitionArn").build()).build();
private static final SdkField JOB_DEFINITION_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("JobDefinitionName").getter(getter(DescribeDataQualityJobDefinitionResponse::jobDefinitionName))
.setter(setter(Builder::jobDefinitionName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("JobDefinitionName").build()).build();
private static final SdkField CREATION_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("CreationTime").getter(getter(DescribeDataQualityJobDefinitionResponse::creationTime))
.setter(setter(Builder::creationTime))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreationTime").build()).build();
private static final SdkField DATA_QUALITY_BASELINE_CONFIG_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("DataQualityBaselineConfig")
.getter(getter(DescribeDataQualityJobDefinitionResponse::dataQualityBaselineConfig))
.setter(setter(Builder::dataQualityBaselineConfig)).constructor(DataQualityBaselineConfig::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DataQualityBaselineConfig").build())
.build();
private static final SdkField DATA_QUALITY_APP_SPECIFICATION_FIELD = SdkField
. builder(MarshallingType.SDK_POJO)
.memberName("DataQualityAppSpecification")
.getter(getter(DescribeDataQualityJobDefinitionResponse::dataQualityAppSpecification))
.setter(setter(Builder::dataQualityAppSpecification))
.constructor(DataQualityAppSpecification::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DataQualityAppSpecification")
.build()).build();
private static final SdkField DATA_QUALITY_JOB_INPUT_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("DataQualityJobInput")
.getter(getter(DescribeDataQualityJobDefinitionResponse::dataQualityJobInput))
.setter(setter(Builder::dataQualityJobInput)).constructor(DataQualityJobInput::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DataQualityJobInput").build())
.build();
private static final SdkField DATA_QUALITY_JOB_OUTPUT_CONFIG_FIELD = SdkField
. builder(MarshallingType.SDK_POJO)
.memberName("DataQualityJobOutputConfig")
.getter(getter(DescribeDataQualityJobDefinitionResponse::dataQualityJobOutputConfig))
.setter(setter(Builder::dataQualityJobOutputConfig))
.constructor(MonitoringOutputConfig::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DataQualityJobOutputConfig").build())
.build();
private static final SdkField JOB_RESOURCES_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("JobResources")
.getter(getter(DescribeDataQualityJobDefinitionResponse::jobResources)).setter(setter(Builder::jobResources))
.constructor(MonitoringResources::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("JobResources").build()).build();
private static final SdkField NETWORK_CONFIG_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("NetworkConfig")
.getter(getter(DescribeDataQualityJobDefinitionResponse::networkConfig)).setter(setter(Builder::networkConfig))
.constructor(MonitoringNetworkConfig::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("NetworkConfig").build()).build();
private static final SdkField ROLE_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("RoleArn").getter(getter(DescribeDataQualityJobDefinitionResponse::roleArn))
.setter(setter(Builder::roleArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("RoleArn").build()).build();
private static final SdkField STOPPING_CONDITION_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("StoppingCondition")
.getter(getter(DescribeDataQualityJobDefinitionResponse::stoppingCondition))
.setter(setter(Builder::stoppingCondition)).constructor(MonitoringStoppingCondition::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("StoppingCondition").build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(JOB_DEFINITION_ARN_FIELD,
JOB_DEFINITION_NAME_FIELD, CREATION_TIME_FIELD, DATA_QUALITY_BASELINE_CONFIG_FIELD,
DATA_QUALITY_APP_SPECIFICATION_FIELD, DATA_QUALITY_JOB_INPUT_FIELD, DATA_QUALITY_JOB_OUTPUT_CONFIG_FIELD,
JOB_RESOURCES_FIELD, NETWORK_CONFIG_FIELD, ROLE_ARN_FIELD, STOPPING_CONDITION_FIELD));
private final String jobDefinitionArn;
private final String jobDefinitionName;
private final Instant creationTime;
private final DataQualityBaselineConfig dataQualityBaselineConfig;
private final DataQualityAppSpecification dataQualityAppSpecification;
private final DataQualityJobInput dataQualityJobInput;
private final MonitoringOutputConfig dataQualityJobOutputConfig;
private final MonitoringResources jobResources;
private final MonitoringNetworkConfig networkConfig;
private final String roleArn;
private final MonitoringStoppingCondition stoppingCondition;
private DescribeDataQualityJobDefinitionResponse(BuilderImpl builder) {
super(builder);
this.jobDefinitionArn = builder.jobDefinitionArn;
this.jobDefinitionName = builder.jobDefinitionName;
this.creationTime = builder.creationTime;
this.dataQualityBaselineConfig = builder.dataQualityBaselineConfig;
this.dataQualityAppSpecification = builder.dataQualityAppSpecification;
this.dataQualityJobInput = builder.dataQualityJobInput;
this.dataQualityJobOutputConfig = builder.dataQualityJobOutputConfig;
this.jobResources = builder.jobResources;
this.networkConfig = builder.networkConfig;
this.roleArn = builder.roleArn;
this.stoppingCondition = builder.stoppingCondition;
}
/**
*
* The Amazon Resource Name (ARN) of the data quality monitoring job definition.
*
*
* @return The Amazon Resource Name (ARN) of the data quality monitoring job definition.
*/
public final String jobDefinitionArn() {
return jobDefinitionArn;
}
/**
*
* The name of the data quality monitoring job definition.
*
*
* @return The name of the data quality monitoring job definition.
*/
public final String jobDefinitionName() {
return jobDefinitionName;
}
/**
*
* The time that the data quality monitoring job definition was created.
*
*
* @return The time that the data quality monitoring job definition was created.
*/
public final Instant creationTime() {
return creationTime;
}
/**
*
* The constraints and baselines for the data quality monitoring job definition.
*
*
* @return The constraints and baselines for the data quality monitoring job definition.
*/
public final DataQualityBaselineConfig dataQualityBaselineConfig() {
return dataQualityBaselineConfig;
}
/**
*
* Information about the container that runs the data quality monitoring job.
*
*
* @return Information about the container that runs the data quality monitoring job.
*/
public final DataQualityAppSpecification dataQualityAppSpecification() {
return dataQualityAppSpecification;
}
/**
*
* The list of inputs for the data quality monitoring job. Currently endpoints are supported.
*
*
* @return The list of inputs for the data quality monitoring job. Currently endpoints are supported.
*/
public final DataQualityJobInput dataQualityJobInput() {
return dataQualityJobInput;
}
/**
* Returns the value of the DataQualityJobOutputConfig property for this object.
*
* @return The value of the DataQualityJobOutputConfig property for this object.
*/
public final MonitoringOutputConfig dataQualityJobOutputConfig() {
return dataQualityJobOutputConfig;
}
/**
* Returns the value of the JobResources property for this object.
*
* @return The value of the JobResources property for this object.
*/
public final MonitoringResources jobResources() {
return jobResources;
}
/**
*
* The networking configuration for the data quality monitoring job.
*
*
* @return The networking configuration for the data quality monitoring job.
*/
public final MonitoringNetworkConfig networkConfig() {
return networkConfig;
}
/**
*
* The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your behalf.
*
*
* @return The Amazon Resource Name (ARN) of an IAM role that Amazon SageMaker can assume to perform tasks on your
* behalf.
*/
public final String roleArn() {
return roleArn;
}
/**
* Returns the value of the StoppingCondition property for this object.
*
* @return The value of the StoppingCondition property for this object.
*/
public final MonitoringStoppingCondition stoppingCondition() {
return stoppingCondition;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + super.hashCode();
hashCode = 31 * hashCode + Objects.hashCode(jobDefinitionArn());
hashCode = 31 * hashCode + Objects.hashCode(jobDefinitionName());
hashCode = 31 * hashCode + Objects.hashCode(creationTime());
hashCode = 31 * hashCode + Objects.hashCode(dataQualityBaselineConfig());
hashCode = 31 * hashCode + Objects.hashCode(dataQualityAppSpecification());
hashCode = 31 * hashCode + Objects.hashCode(dataQualityJobInput());
hashCode = 31 * hashCode + Objects.hashCode(dataQualityJobOutputConfig());
hashCode = 31 * hashCode + Objects.hashCode(jobResources());
hashCode = 31 * hashCode + Objects.hashCode(networkConfig());
hashCode = 31 * hashCode + Objects.hashCode(roleArn());
hashCode = 31 * hashCode + Objects.hashCode(stoppingCondition());
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return super.equals(obj) && equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof DescribeDataQualityJobDefinitionResponse)) {
return false;
}
DescribeDataQualityJobDefinitionResponse other = (DescribeDataQualityJobDefinitionResponse) obj;
return Objects.equals(jobDefinitionArn(), other.jobDefinitionArn())
&& Objects.equals(jobDefinitionName(), other.jobDefinitionName())
&& Objects.equals(creationTime(), other.creationTime())
&& Objects.equals(dataQualityBaselineConfig(), other.dataQualityBaselineConfig())
&& Objects.equals(dataQualityAppSpecification(), other.dataQualityAppSpecification())
&& Objects.equals(dataQualityJobInput(), other.dataQualityJobInput())
&& Objects.equals(dataQualityJobOutputConfig(), other.dataQualityJobOutputConfig())
&& Objects.equals(jobResources(), other.jobResources()) && Objects.equals(networkConfig(), other.networkConfig())
&& Objects.equals(roleArn(), other.roleArn()) && Objects.equals(stoppingCondition(), other.stoppingCondition());
}
/**
* 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.
*/
@Override
public final String toString() {
return ToString.builder("DescribeDataQualityJobDefinitionResponse").add("JobDefinitionArn", jobDefinitionArn())
.add("JobDefinitionName", jobDefinitionName()).add("CreationTime", creationTime())
.add("DataQualityBaselineConfig", dataQualityBaselineConfig())
.add("DataQualityAppSpecification", dataQualityAppSpecification())
.add("DataQualityJobInput", dataQualityJobInput())
.add("DataQualityJobOutputConfig", dataQualityJobOutputConfig()).add("JobResources", jobResources())
.add("NetworkConfig", networkConfig()).add("RoleArn", roleArn()).add("StoppingCondition", stoppingCondition())
.build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "JobDefinitionArn":
return Optional.ofNullable(clazz.cast(jobDefinitionArn()));
case "JobDefinitionName":
return Optional.ofNullable(clazz.cast(jobDefinitionName()));
case "CreationTime":
return Optional.ofNullable(clazz.cast(creationTime()));
case "DataQualityBaselineConfig":
return Optional.ofNullable(clazz.cast(dataQualityBaselineConfig()));
case "DataQualityAppSpecification":
return Optional.ofNullable(clazz.cast(dataQualityAppSpecification()));
case "DataQualityJobInput":
return Optional.ofNullable(clazz.cast(dataQualityJobInput()));
case "DataQualityJobOutputConfig":
return Optional.ofNullable(clazz.cast(dataQualityJobOutputConfig()));
case "JobResources":
return Optional.ofNullable(clazz.cast(jobResources()));
case "NetworkConfig":
return Optional.ofNullable(clazz.cast(networkConfig()));
case "RoleArn":
return Optional.ofNullable(clazz.cast(roleArn()));
case "StoppingCondition":
return Optional.ofNullable(clazz.cast(stoppingCondition()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function