All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.s3control.model.JobOperation Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon S3 Control module holds the client classes that are used for communicating with Amazon Simple Storage Service Control Plane

There is a newer version: 2.30.1
Show newest version
/*
 * 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.s3control.model;

import java.io.Serializable;
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;

/**
 * 

* The operation that you want this job to perform on every object listed in the manifest. For more information about * the available operations, see Operations in the Amazon * Simple Storage Service User Guide. *

*/ @Generated("software.amazon.awssdk:codegen") public final class JobOperation implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField LAMBDA_INVOKE_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("LambdaInvoke") .getter(getter(JobOperation::lambdaInvoke)) .setter(setter(Builder::lambdaInvoke)) .constructor(LambdaInvokeOperation::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LambdaInvoke") .unmarshallLocationName("LambdaInvoke").build()).build(); private static final SdkField S3_PUT_OBJECT_COPY_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("S3PutObjectCopy") .getter(getter(JobOperation::s3PutObjectCopy)) .setter(setter(Builder::s3PutObjectCopy)) .constructor(S3CopyObjectOperation::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("S3PutObjectCopy") .unmarshallLocationName("S3PutObjectCopy").build()).build(); private static final SdkField S3_PUT_OBJECT_ACL_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("S3PutObjectAcl") .getter(getter(JobOperation::s3PutObjectAcl)) .setter(setter(Builder::s3PutObjectAcl)) .constructor(S3SetObjectAclOperation::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("S3PutObjectAcl") .unmarshallLocationName("S3PutObjectAcl").build()).build(); private static final SdkField S3_PUT_OBJECT_TAGGING_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("S3PutObjectTagging") .getter(getter(JobOperation::s3PutObjectTagging)) .setter(setter(Builder::s3PutObjectTagging)) .constructor(S3SetObjectTaggingOperation::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("S3PutObjectTagging") .unmarshallLocationName("S3PutObjectTagging").build()).build(); private static final SdkField S3_DELETE_OBJECT_TAGGING_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("S3DeleteObjectTagging") .getter(getter(JobOperation::s3DeleteObjectTagging)) .setter(setter(Builder::s3DeleteObjectTagging)) .constructor(S3DeleteObjectTaggingOperation::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("S3DeleteObjectTagging") .unmarshallLocationName("S3DeleteObjectTagging").build()).build(); private static final SdkField S3_INITIATE_RESTORE_OBJECT_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("S3InitiateRestoreObject") .getter(getter(JobOperation::s3InitiateRestoreObject)) .setter(setter(Builder::s3InitiateRestoreObject)) .constructor(S3InitiateRestoreObjectOperation::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("S3InitiateRestoreObject") .unmarshallLocationName("S3InitiateRestoreObject").build()).build(); private static final SdkField S3_PUT_OBJECT_LEGAL_HOLD_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("S3PutObjectLegalHold") .getter(getter(JobOperation::s3PutObjectLegalHold)) .setter(setter(Builder::s3PutObjectLegalHold)) .constructor(S3SetObjectLegalHoldOperation::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("S3PutObjectLegalHold") .unmarshallLocationName("S3PutObjectLegalHold").build()).build(); private static final SdkField S3_PUT_OBJECT_RETENTION_FIELD = SdkField . builder(MarshallingType.SDK_POJO) .memberName("S3PutObjectRetention") .getter(getter(JobOperation::s3PutObjectRetention)) .setter(setter(Builder::s3PutObjectRetention)) .constructor(S3SetObjectRetentionOperation::builder) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("S3PutObjectRetention") .unmarshallLocationName("S3PutObjectRetention").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(LAMBDA_INVOKE_FIELD, S3_PUT_OBJECT_COPY_FIELD, S3_PUT_OBJECT_ACL_FIELD, S3_PUT_OBJECT_TAGGING_FIELD, S3_DELETE_OBJECT_TAGGING_FIELD, S3_INITIATE_RESTORE_OBJECT_FIELD, S3_PUT_OBJECT_LEGAL_HOLD_FIELD, S3_PUT_OBJECT_RETENTION_FIELD)); private static final long serialVersionUID = 1L; private final LambdaInvokeOperation lambdaInvoke; private final S3CopyObjectOperation s3PutObjectCopy; private final S3SetObjectAclOperation s3PutObjectAcl; private final S3SetObjectTaggingOperation s3PutObjectTagging; private final S3DeleteObjectTaggingOperation s3DeleteObjectTagging; private final S3InitiateRestoreObjectOperation s3InitiateRestoreObject; private final S3SetObjectLegalHoldOperation s3PutObjectLegalHold; private final S3SetObjectRetentionOperation s3PutObjectRetention; private JobOperation(BuilderImpl builder) { this.lambdaInvoke = builder.lambdaInvoke; this.s3PutObjectCopy = builder.s3PutObjectCopy; this.s3PutObjectAcl = builder.s3PutObjectAcl; this.s3PutObjectTagging = builder.s3PutObjectTagging; this.s3DeleteObjectTagging = builder.s3DeleteObjectTagging; this.s3InitiateRestoreObject = builder.s3InitiateRestoreObject; this.s3PutObjectLegalHold = builder.s3PutObjectLegalHold; this.s3PutObjectRetention = builder.s3PutObjectRetention; } /** *

* Directs the specified job to invoke an AWS Lambda function on every object in the manifest. *

* * @return Directs the specified job to invoke an AWS Lambda function on every object in the manifest. */ public final LambdaInvokeOperation lambdaInvoke() { return lambdaInvoke; } /** *

* Directs the specified job to run a PUT Copy object call on every object in the manifest. *

* * @return Directs the specified job to run a PUT Copy object call on every object in the manifest. */ public final S3CopyObjectOperation s3PutObjectCopy() { return s3PutObjectCopy; } /** *

* Directs the specified job to run a PUT Object acl call on every object in the manifest. *

* * @return Directs the specified job to run a PUT Object acl call on every object in the manifest. */ public final S3SetObjectAclOperation s3PutObjectAcl() { return s3PutObjectAcl; } /** *

* Directs the specified job to run a PUT Object tagging call on every object in the manifest. *

* * @return Directs the specified job to run a PUT Object tagging call on every object in the manifest. */ public final S3SetObjectTaggingOperation s3PutObjectTagging() { return s3PutObjectTagging; } /** *

* Directs the specified job to execute a DELETE Object tagging call on every object in the manifest. *

* * @return Directs the specified job to execute a DELETE Object tagging call on every object in the manifest. */ public final S3DeleteObjectTaggingOperation s3DeleteObjectTagging() { return s3DeleteObjectTagging; } /** *

* Directs the specified job to initiate restore requests for every archived object in the manifest. *

* * @return Directs the specified job to initiate restore requests for every archived object in the manifest. */ public final S3InitiateRestoreObjectOperation s3InitiateRestoreObject() { return s3InitiateRestoreObject; } /** * Returns the value of the S3PutObjectLegalHold property for this object. * * @return The value of the S3PutObjectLegalHold property for this object. */ public final S3SetObjectLegalHoldOperation s3PutObjectLegalHold() { return s3PutObjectLegalHold; } /** * Returns the value of the S3PutObjectRetention property for this object. * * @return The value of the S3PutObjectRetention property for this object. */ public final S3SetObjectRetentionOperation s3PutObjectRetention() { return s3PutObjectRetention; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(lambdaInvoke()); hashCode = 31 * hashCode + Objects.hashCode(s3PutObjectCopy()); hashCode = 31 * hashCode + Objects.hashCode(s3PutObjectAcl()); hashCode = 31 * hashCode + Objects.hashCode(s3PutObjectTagging()); hashCode = 31 * hashCode + Objects.hashCode(s3DeleteObjectTagging()); hashCode = 31 * hashCode + Objects.hashCode(s3InitiateRestoreObject()); hashCode = 31 * hashCode + Objects.hashCode(s3PutObjectLegalHold()); hashCode = 31 * hashCode + Objects.hashCode(s3PutObjectRetention()); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof JobOperation)) { return false; } JobOperation other = (JobOperation) obj; return Objects.equals(lambdaInvoke(), other.lambdaInvoke()) && Objects.equals(s3PutObjectCopy(), other.s3PutObjectCopy()) && Objects.equals(s3PutObjectAcl(), other.s3PutObjectAcl()) && Objects.equals(s3PutObjectTagging(), other.s3PutObjectTagging()) && Objects.equals(s3DeleteObjectTagging(), other.s3DeleteObjectTagging()) && Objects.equals(s3InitiateRestoreObject(), other.s3InitiateRestoreObject()) && Objects.equals(s3PutObjectLegalHold(), other.s3PutObjectLegalHold()) && Objects.equals(s3PutObjectRetention(), other.s3PutObjectRetention()); } /** * 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("JobOperation").add("LambdaInvoke", lambdaInvoke()).add("S3PutObjectCopy", s3PutObjectCopy()) .add("S3PutObjectAcl", s3PutObjectAcl()).add("S3PutObjectTagging", s3PutObjectTagging()) .add("S3DeleteObjectTagging", s3DeleteObjectTagging()).add("S3InitiateRestoreObject", s3InitiateRestoreObject()) .add("S3PutObjectLegalHold", s3PutObjectLegalHold()).add("S3PutObjectRetention", s3PutObjectRetention()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "LambdaInvoke": return Optional.ofNullable(clazz.cast(lambdaInvoke())); case "S3PutObjectCopy": return Optional.ofNullable(clazz.cast(s3PutObjectCopy())); case "S3PutObjectAcl": return Optional.ofNullable(clazz.cast(s3PutObjectAcl())); case "S3PutObjectTagging": return Optional.ofNullable(clazz.cast(s3PutObjectTagging())); case "S3DeleteObjectTagging": return Optional.ofNullable(clazz.cast(s3DeleteObjectTagging())); case "S3InitiateRestoreObject": return Optional.ofNullable(clazz.cast(s3InitiateRestoreObject())); case "S3PutObjectLegalHold": return Optional.ofNullable(clazz.cast(s3PutObjectLegalHold())); case "S3PutObjectRetention": return Optional.ofNullable(clazz.cast(s3PutObjectRetention())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } private static Function getter(Function g) { return obj -> g.apply((JobOperation) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* Directs the specified job to invoke an AWS Lambda function on every object in the manifest. *

* * @param lambdaInvoke * Directs the specified job to invoke an AWS Lambda function on every object in the manifest. * @return Returns a reference to this object so that method calls can be chained together. */ Builder lambdaInvoke(LambdaInvokeOperation lambdaInvoke); /** *

* Directs the specified job to invoke an AWS Lambda function on every object in the manifest. *

* This is a convenience that creates an instance of the {@link LambdaInvokeOperation.Builder} avoiding the need * to create one manually via {@link LambdaInvokeOperation#builder()}. * * When the {@link Consumer} completes, {@link LambdaInvokeOperation.Builder#build()} is called immediately and * its result is passed to {@link #lambdaInvoke(LambdaInvokeOperation)}. * * @param lambdaInvoke * a consumer that will call methods on {@link LambdaInvokeOperation.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #lambdaInvoke(LambdaInvokeOperation) */ default Builder lambdaInvoke(Consumer lambdaInvoke) { return lambdaInvoke(LambdaInvokeOperation.builder().applyMutation(lambdaInvoke).build()); } /** *

* Directs the specified job to run a PUT Copy object call on every object in the manifest. *

* * @param s3PutObjectCopy * Directs the specified job to run a PUT Copy object call on every object in the manifest. * @return Returns a reference to this object so that method calls can be chained together. */ Builder s3PutObjectCopy(S3CopyObjectOperation s3PutObjectCopy); /** *

* Directs the specified job to run a PUT Copy object call on every object in the manifest. *

* This is a convenience that creates an instance of the {@link S3CopyObjectOperation.Builder} avoiding the need * to create one manually via {@link S3CopyObjectOperation#builder()}. * * When the {@link Consumer} completes, {@link S3CopyObjectOperation.Builder#build()} is called immediately and * its result is passed to {@link #s3PutObjectCopy(S3CopyObjectOperation)}. * * @param s3PutObjectCopy * a consumer that will call methods on {@link S3CopyObjectOperation.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #s3PutObjectCopy(S3CopyObjectOperation) */ default Builder s3PutObjectCopy(Consumer s3PutObjectCopy) { return s3PutObjectCopy(S3CopyObjectOperation.builder().applyMutation(s3PutObjectCopy).build()); } /** *

* Directs the specified job to run a PUT Object acl call on every object in the manifest. *

* * @param s3PutObjectAcl * Directs the specified job to run a PUT Object acl call on every object in the manifest. * @return Returns a reference to this object so that method calls can be chained together. */ Builder s3PutObjectAcl(S3SetObjectAclOperation s3PutObjectAcl); /** *

* Directs the specified job to run a PUT Object acl call on every object in the manifest. *

* This is a convenience that creates an instance of the {@link S3SetObjectAclOperation.Builder} avoiding the * need to create one manually via {@link S3SetObjectAclOperation#builder()}. * * When the {@link Consumer} completes, {@link S3SetObjectAclOperation.Builder#build()} is called immediately * and its result is passed to {@link #s3PutObjectAcl(S3SetObjectAclOperation)}. * * @param s3PutObjectAcl * a consumer that will call methods on {@link S3SetObjectAclOperation.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #s3PutObjectAcl(S3SetObjectAclOperation) */ default Builder s3PutObjectAcl(Consumer s3PutObjectAcl) { return s3PutObjectAcl(S3SetObjectAclOperation.builder().applyMutation(s3PutObjectAcl).build()); } /** *

* Directs the specified job to run a PUT Object tagging call on every object in the manifest. *

* * @param s3PutObjectTagging * Directs the specified job to run a PUT Object tagging call on every object in the manifest. * @return Returns a reference to this object so that method calls can be chained together. */ Builder s3PutObjectTagging(S3SetObjectTaggingOperation s3PutObjectTagging); /** *

* Directs the specified job to run a PUT Object tagging call on every object in the manifest. *

* This is a convenience that creates an instance of the {@link S3SetObjectTaggingOperation.Builder} avoiding * the need to create one manually via {@link S3SetObjectTaggingOperation#builder()}. * * When the {@link Consumer} completes, {@link S3SetObjectTaggingOperation.Builder#build()} is called * immediately and its result is passed to {@link #s3PutObjectTagging(S3SetObjectTaggingOperation)}. * * @param s3PutObjectTagging * a consumer that will call methods on {@link S3SetObjectTaggingOperation.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #s3PutObjectTagging(S3SetObjectTaggingOperation) */ default Builder s3PutObjectTagging(Consumer s3PutObjectTagging) { return s3PutObjectTagging(S3SetObjectTaggingOperation.builder().applyMutation(s3PutObjectTagging).build()); } /** *

* Directs the specified job to execute a DELETE Object tagging call on every object in the manifest. *

* * @param s3DeleteObjectTagging * Directs the specified job to execute a DELETE Object tagging call on every object in the manifest. * @return Returns a reference to this object so that method calls can be chained together. */ Builder s3DeleteObjectTagging(S3DeleteObjectTaggingOperation s3DeleteObjectTagging); /** *

* Directs the specified job to execute a DELETE Object tagging call on every object in the manifest. *

* This is a convenience that creates an instance of the {@link S3DeleteObjectTaggingOperation.Builder} avoiding * the need to create one manually via {@link S3DeleteObjectTaggingOperation#builder()}. * * When the {@link Consumer} completes, {@link S3DeleteObjectTaggingOperation.Builder#build()} is called * immediately and its result is passed to {@link #s3DeleteObjectTagging(S3DeleteObjectTaggingOperation)}. * * @param s3DeleteObjectTagging * a consumer that will call methods on {@link S3DeleteObjectTaggingOperation.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #s3DeleteObjectTagging(S3DeleteObjectTaggingOperation) */ default Builder s3DeleteObjectTagging(Consumer s3DeleteObjectTagging) { return s3DeleteObjectTagging(S3DeleteObjectTaggingOperation.builder().applyMutation(s3DeleteObjectTagging).build()); } /** *

* Directs the specified job to initiate restore requests for every archived object in the manifest. *

* * @param s3InitiateRestoreObject * Directs the specified job to initiate restore requests for every archived object in the manifest. * @return Returns a reference to this object so that method calls can be chained together. */ Builder s3InitiateRestoreObject(S3InitiateRestoreObjectOperation s3InitiateRestoreObject); /** *

* Directs the specified job to initiate restore requests for every archived object in the manifest. *

* This is a convenience that creates an instance of the {@link S3InitiateRestoreObjectOperation.Builder} * avoiding the need to create one manually via {@link S3InitiateRestoreObjectOperation#builder()}. * * When the {@link Consumer} completes, {@link S3InitiateRestoreObjectOperation.Builder#build()} is called * immediately and its result is passed to {@link #s3InitiateRestoreObject(S3InitiateRestoreObjectOperation)}. * * @param s3InitiateRestoreObject * a consumer that will call methods on {@link S3InitiateRestoreObjectOperation.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #s3InitiateRestoreObject(S3InitiateRestoreObjectOperation) */ default Builder s3InitiateRestoreObject(Consumer s3InitiateRestoreObject) { return s3InitiateRestoreObject(S3InitiateRestoreObjectOperation.builder().applyMutation(s3InitiateRestoreObject) .build()); } /** * Sets the value of the S3PutObjectLegalHold property for this object. * * @param s3PutObjectLegalHold * The new value for the S3PutObjectLegalHold property for this object. * @return Returns a reference to this object so that method calls can be chained together. */ Builder s3PutObjectLegalHold(S3SetObjectLegalHoldOperation s3PutObjectLegalHold); /** * Sets the value of the S3PutObjectLegalHold property for this object. * * This is a convenience that creates an instance of the {@link S3SetObjectLegalHoldOperation.Builder} avoiding * the need to create one manually via {@link S3SetObjectLegalHoldOperation#builder()}. * * When the {@link Consumer} completes, {@link S3SetObjectLegalHoldOperation.Builder#build()} is called * immediately and its result is passed to {@link #s3PutObjectLegalHold(S3SetObjectLegalHoldOperation)}. * * @param s3PutObjectLegalHold * a consumer that will call methods on {@link S3SetObjectLegalHoldOperation.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #s3PutObjectLegalHold(S3SetObjectLegalHoldOperation) */ default Builder s3PutObjectLegalHold(Consumer s3PutObjectLegalHold) { return s3PutObjectLegalHold(S3SetObjectLegalHoldOperation.builder().applyMutation(s3PutObjectLegalHold).build()); } /** * Sets the value of the S3PutObjectRetention property for this object. * * @param s3PutObjectRetention * The new value for the S3PutObjectRetention property for this object. * @return Returns a reference to this object so that method calls can be chained together. */ Builder s3PutObjectRetention(S3SetObjectRetentionOperation s3PutObjectRetention); /** * Sets the value of the S3PutObjectRetention property for this object. * * This is a convenience that creates an instance of the {@link S3SetObjectRetentionOperation.Builder} avoiding * the need to create one manually via {@link S3SetObjectRetentionOperation#builder()}. * * When the {@link Consumer} completes, {@link S3SetObjectRetentionOperation.Builder#build()} is called * immediately and its result is passed to {@link #s3PutObjectRetention(S3SetObjectRetentionOperation)}. * * @param s3PutObjectRetention * a consumer that will call methods on {@link S3SetObjectRetentionOperation.Builder} * @return Returns a reference to this object so that method calls can be chained together. * @see #s3PutObjectRetention(S3SetObjectRetentionOperation) */ default Builder s3PutObjectRetention(Consumer s3PutObjectRetention) { return s3PutObjectRetention(S3SetObjectRetentionOperation.builder().applyMutation(s3PutObjectRetention).build()); } } static final class BuilderImpl implements Builder { private LambdaInvokeOperation lambdaInvoke; private S3CopyObjectOperation s3PutObjectCopy; private S3SetObjectAclOperation s3PutObjectAcl; private S3SetObjectTaggingOperation s3PutObjectTagging; private S3DeleteObjectTaggingOperation s3DeleteObjectTagging; private S3InitiateRestoreObjectOperation s3InitiateRestoreObject; private S3SetObjectLegalHoldOperation s3PutObjectLegalHold; private S3SetObjectRetentionOperation s3PutObjectRetention; private BuilderImpl() { } private BuilderImpl(JobOperation model) { lambdaInvoke(model.lambdaInvoke); s3PutObjectCopy(model.s3PutObjectCopy); s3PutObjectAcl(model.s3PutObjectAcl); s3PutObjectTagging(model.s3PutObjectTagging); s3DeleteObjectTagging(model.s3DeleteObjectTagging); s3InitiateRestoreObject(model.s3InitiateRestoreObject); s3PutObjectLegalHold(model.s3PutObjectLegalHold); s3PutObjectRetention(model.s3PutObjectRetention); } public final LambdaInvokeOperation.Builder getLambdaInvoke() { return lambdaInvoke != null ? lambdaInvoke.toBuilder() : null; } @Override public final Builder lambdaInvoke(LambdaInvokeOperation lambdaInvoke) { this.lambdaInvoke = lambdaInvoke; return this; } public final void setLambdaInvoke(LambdaInvokeOperation.BuilderImpl lambdaInvoke) { this.lambdaInvoke = lambdaInvoke != null ? lambdaInvoke.build() : null; } public final S3CopyObjectOperation.Builder getS3PutObjectCopy() { return s3PutObjectCopy != null ? s3PutObjectCopy.toBuilder() : null; } @Override public final Builder s3PutObjectCopy(S3CopyObjectOperation s3PutObjectCopy) { this.s3PutObjectCopy = s3PutObjectCopy; return this; } public final void setS3PutObjectCopy(S3CopyObjectOperation.BuilderImpl s3PutObjectCopy) { this.s3PutObjectCopy = s3PutObjectCopy != null ? s3PutObjectCopy.build() : null; } public final S3SetObjectAclOperation.Builder getS3PutObjectAcl() { return s3PutObjectAcl != null ? s3PutObjectAcl.toBuilder() : null; } @Override public final Builder s3PutObjectAcl(S3SetObjectAclOperation s3PutObjectAcl) { this.s3PutObjectAcl = s3PutObjectAcl; return this; } public final void setS3PutObjectAcl(S3SetObjectAclOperation.BuilderImpl s3PutObjectAcl) { this.s3PutObjectAcl = s3PutObjectAcl != null ? s3PutObjectAcl.build() : null; } public final S3SetObjectTaggingOperation.Builder getS3PutObjectTagging() { return s3PutObjectTagging != null ? s3PutObjectTagging.toBuilder() : null; } @Override public final Builder s3PutObjectTagging(S3SetObjectTaggingOperation s3PutObjectTagging) { this.s3PutObjectTagging = s3PutObjectTagging; return this; } public final void setS3PutObjectTagging(S3SetObjectTaggingOperation.BuilderImpl s3PutObjectTagging) { this.s3PutObjectTagging = s3PutObjectTagging != null ? s3PutObjectTagging.build() : null; } public final S3DeleteObjectTaggingOperation.Builder getS3DeleteObjectTagging() { return s3DeleteObjectTagging != null ? s3DeleteObjectTagging.toBuilder() : null; } @Override public final Builder s3DeleteObjectTagging(S3DeleteObjectTaggingOperation s3DeleteObjectTagging) { this.s3DeleteObjectTagging = s3DeleteObjectTagging; return this; } public final void setS3DeleteObjectTagging(S3DeleteObjectTaggingOperation.BuilderImpl s3DeleteObjectTagging) { this.s3DeleteObjectTagging = s3DeleteObjectTagging != null ? s3DeleteObjectTagging.build() : null; } public final S3InitiateRestoreObjectOperation.Builder getS3InitiateRestoreObject() { return s3InitiateRestoreObject != null ? s3InitiateRestoreObject.toBuilder() : null; } @Override public final Builder s3InitiateRestoreObject(S3InitiateRestoreObjectOperation s3InitiateRestoreObject) { this.s3InitiateRestoreObject = s3InitiateRestoreObject; return this; } public final void setS3InitiateRestoreObject(S3InitiateRestoreObjectOperation.BuilderImpl s3InitiateRestoreObject) { this.s3InitiateRestoreObject = s3InitiateRestoreObject != null ? s3InitiateRestoreObject.build() : null; } public final S3SetObjectLegalHoldOperation.Builder getS3PutObjectLegalHold() { return s3PutObjectLegalHold != null ? s3PutObjectLegalHold.toBuilder() : null; } @Override public final Builder s3PutObjectLegalHold(S3SetObjectLegalHoldOperation s3PutObjectLegalHold) { this.s3PutObjectLegalHold = s3PutObjectLegalHold; return this; } public final void setS3PutObjectLegalHold(S3SetObjectLegalHoldOperation.BuilderImpl s3PutObjectLegalHold) { this.s3PutObjectLegalHold = s3PutObjectLegalHold != null ? s3PutObjectLegalHold.build() : null; } public final S3SetObjectRetentionOperation.Builder getS3PutObjectRetention() { return s3PutObjectRetention != null ? s3PutObjectRetention.toBuilder() : null; } @Override public final Builder s3PutObjectRetention(S3SetObjectRetentionOperation s3PutObjectRetention) { this.s3PutObjectRetention = s3PutObjectRetention; return this; } public final void setS3PutObjectRetention(S3SetObjectRetentionOperation.BuilderImpl s3PutObjectRetention) { this.s3PutObjectRetention = s3PutObjectRetention != null ? s3PutObjectRetention.build() : null; } @Override public JobOperation build() { return new JobOperation(this); } @Override public List> sdkFields() { return SDK_FIELDS; } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy