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

com.azure.storage.blob.models.BlobContainerEncryptionScope Maven / Gradle / Ivy

There is a newer version: 12.29.0
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.storage.blob.models;

import com.azure.core.annotation.Fluent;

/**
 * Parameter group.
 */
@Fluent
public final class BlobContainerEncryptionScope {
    /*
     * Optional.  Version 2019-07-07 and later.  Specifies the default encryption scope to set on the container and use for all future writes.
     */
    private String defaultEncryptionScope;

    /*
     * Optional.  Version 2019-07-07 and newer.  If true, prevents any request from specifying a different encryption scope than the scope set on the container.
     */
    private Boolean encryptionScopeOverridePrevented;

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

    /**
     * Get the defaultEncryptionScope property: Optional. Version 2019-07-07 and later. Specifies the default encryption
     * scope to set on the container and use for all future writes.
     * 
     * @return the defaultEncryptionScope value.
     */
    public String getDefaultEncryptionScope() {
        return this.defaultEncryptionScope;
    }

    /**
     * Set the defaultEncryptionScope property: Optional. Version 2019-07-07 and later. Specifies the default encryption
     * scope to set on the container and use for all future writes.
     * 
     * @param defaultEncryptionScope the defaultEncryptionScope value to set.
     * @return the BlobContainerEncryptionScope object itself.
     */
    public BlobContainerEncryptionScope setDefaultEncryptionScope(String defaultEncryptionScope) {
        this.defaultEncryptionScope = defaultEncryptionScope;
        return this;
    }

    /**
     * Get the encryptionScopeOverridePrevented property: Optional. Version 2019-07-07 and newer. If true, prevents any
     * request from specifying a different encryption scope than the scope set on the container.
     * 
     * @return the encryptionScopeOverridePrevented value.
     */
    public boolean isEncryptionScopeOverridePrevented() {
        Boolean returnValue = this.encryptionScopeOverridePrevented;
        return Boolean.TRUE.equals(returnValue);
    }

    /**
     * Set the encryptionScopeOverridePrevented property: Optional. Version 2019-07-07 and newer. If true, prevents any
     * request from specifying a different encryption scope than the scope set on the container.
     * 
     * @param encryptionScopeOverridePrevented the encryptionScopeOverridePrevented value to set.
     * @return the BlobContainerEncryptionScope object itself.
     */
    public BlobContainerEncryptionScope setEncryptionScopeOverridePrevented(Boolean encryptionScopeOverridePrevented) {
        this.encryptionScopeOverridePrevented = encryptionScopeOverridePrevented;
        return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy