Class ImmutableO365CopyJobCreateRequest

java.lang.Object
com.iland.core.web.rest.request.vbo.ImmutableO365CopyJobCreateRequest
All Implemented Interfaces:
O365CopyJobCreateRequest

@Generated(from="O365CopyJobCreateRequest", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableO365CopyJobCreateRequest extends Object implements O365CopyJobCreateRequest
Immutable implementation of O365CopyJobCreateRequest.

Use the builder to create immutable instances: ImmutableO365CopyJobCreateRequest.builder().

  • Method Details

    • repositoryId

      public String repositoryId()
      ID of the backup repository extended with Azure Blob Storage Archive access tier, Amazon S3 Glacier Instant Retrieval, Amazon S3 Glacier Flexible Retrieval or Amazon S3 Glacier Deep Archive storage classes.
      Specified by:
      repositoryId in interface O365CopyJobCreateRequest
    • schedulePolicy

      public Optional<O365CopyJobSchedulePolicyRequest> schedulePolicy()
      Schedule policy.
      Specified by:
      schedulePolicy in interface O365CopyJobCreateRequest
    • withRepositoryId

      public final ImmutableO365CopyJobCreateRequest withRepositoryId(String value)
      Copy the current immutable object by setting a value for the repositoryId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for repositoryId
      Returns:
      A modified copy of the this object
    • withSchedulePolicy

      Copy the current immutable object by setting a present value for the optional schedulePolicy attribute.
      Parameters:
      value - The value for schedulePolicy
      Returns:
      A modified copy of this object
    • withSchedulePolicy

      public final ImmutableO365CopyJobCreateRequest withSchedulePolicy(Optional<? extends O365CopyJobSchedulePolicyRequest> optional)
      Copy the current immutable object by setting an optional value for the schedulePolicy attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for schedulePolicy
      Returns:
      A modified copy of this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableO365CopyJobCreateRequest that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: repositoryId, schedulePolicy.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value O365CopyJobCreateRequest with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      Creates an immutable copy of a O365CopyJobCreateRequest value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable O365CopyJobCreateRequest instance
    • builder

      Creates a builder for ImmutableO365CopyJobCreateRequest.
       ImmutableO365CopyJobCreateRequest.builder()
          .repositoryId(String) // required repositoryId
          .schedulePolicy(com.iland.core.web.rest.request.vbo.O365CopyJobSchedulePolicyRequest) // optional schedulePolicy
          .build();
       
      Returns:
      A new ImmutableO365CopyJobCreateRequest builder