// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.datafactory.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.fasterxml.jackson.annotation.JsonTypeName;

/** The location of Amazon S3 Compatible dataset. */
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "type")
@JsonTypeName("AmazonS3CompatibleLocation")
@Fluent
public final class AmazonS3CompatibleLocation extends DatasetLocation {
    /*
     * Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with resultType string)
     */
    @JsonProperty(value = "bucketName")
    private Object bucketName;

    /*
     * Specify the version of Amazon S3 Compatible. Type: string (or Expression with resultType string).
     */
    @JsonProperty(value = "version")
    private Object version;

    /** Creates an instance of AmazonS3CompatibleLocation class. */
    public AmazonS3CompatibleLocation() {
    }

    /**
     * Get the bucketName property: Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with
     * resultType string).
     *
     * @return the bucketName value.
     */
    public Object bucketName() {
        return this.bucketName;
    }

    /**
     * Set the bucketName property: Specify the bucketName of Amazon S3 Compatible. Type: string (or Expression with
     * resultType string).
     *
     * @param bucketName the bucketName value to set.
     * @return the AmazonS3CompatibleLocation object itself.
     */
    public AmazonS3CompatibleLocation withBucketName(Object bucketName) {
        this.bucketName = bucketName;
        return this;
    }

    /**
     * Get the version property: Specify the version of Amazon S3 Compatible. Type: string (or Expression with
     * resultType string).
     *
     * @return the version value.
     */
    public Object version() {
        return this.version;
    }

    /**
     * Set the version property: Specify the version of Amazon S3 Compatible. Type: string (or Expression with
     * resultType string).
     *
     * @param version the version value to set.
     * @return the AmazonS3CompatibleLocation object itself.
     */
    public AmazonS3CompatibleLocation withVersion(Object version) {
        this.version = version;
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AmazonS3CompatibleLocation withFolderPath(Object folderPath) {
        super.withFolderPath(folderPath);
        return this;
    }

    /** {@inheritDoc} */
    @Override
    public AmazonS3CompatibleLocation withFileName(Object fileName) {
        super.withFileName(fileName);
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    @Override
    public void validate() {
        super.validate();
    }
}
