com.azure.storage.blob.models.BlobContainerEncryptionScope Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-storage-blob Show documentation
Show all versions of azure-storage-blob Show documentation
This module contains client library for Microsoft Azure Blob Storage.
// 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;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
/** Parameter group. */
@JacksonXmlRootElement(localName = "blob-container-encryption-scope")
@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.
*/
@JsonProperty(value = "DefaultEncryptionScope")
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.
*/
@JsonProperty(value = "EncryptionScopeOverridePrevented")
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;
}
}