Struct aws_sdk_macie2::types::builders::BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
source · #[non_exhaustive]pub struct BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder { /* private fields */ }Expand description
A builder for BucketCountPolicyAllowsUnencryptedObjectUploads.
Implementations§
source§impl BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
impl BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
sourcepub fn allows_unencrypted_object_uploads(self, input: i64) -> Self
pub fn allows_unencrypted_object_uploads(self, input: i64) -> Self
The total number of buckets that don't have a bucket policy or have a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, the policy doesn't require PutObject requests to include a valid server-side encryption header: the x-amz-server-side-encryption header with a value of AES256 or aws:kms, or the x-amz-server-side-encryption-customer-algorithm header with a value of AES256.
sourcepub fn set_allows_unencrypted_object_uploads(self, input: Option<i64>) -> Self
pub fn set_allows_unencrypted_object_uploads(self, input: Option<i64>) -> Self
The total number of buckets that don't have a bucket policy or have a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, the policy doesn't require PutObject requests to include a valid server-side encryption header: the x-amz-server-side-encryption header with a value of AES256 or aws:kms, or the x-amz-server-side-encryption-customer-algorithm header with a value of AES256.
sourcepub fn get_allows_unencrypted_object_uploads(&self) -> &Option<i64>
pub fn get_allows_unencrypted_object_uploads(&self) -> &Option<i64>
The total number of buckets that don't have a bucket policy or have a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, the policy doesn't require PutObject requests to include a valid server-side encryption header: the x-amz-server-side-encryption header with a value of AES256 or aws:kms, or the x-amz-server-side-encryption-customer-algorithm header with a value of AES256.
sourcepub fn denies_unencrypted_object_uploads(self, input: i64) -> Self
pub fn denies_unencrypted_object_uploads(self, input: i64) -> Self
The total number of buckets whose bucket policies require server-side encryption of new objects. PutObject requests for these buckets must include a valid server-side encryption header: the x-amz-server-side-encryption header with a value of AES256 or aws:kms, or the x-amz-server-side-encryption-customer-algorithm header with a value of AES256.
sourcepub fn set_denies_unencrypted_object_uploads(self, input: Option<i64>) -> Self
pub fn set_denies_unencrypted_object_uploads(self, input: Option<i64>) -> Self
The total number of buckets whose bucket policies require server-side encryption of new objects. PutObject requests for these buckets must include a valid server-side encryption header: the x-amz-server-side-encryption header with a value of AES256 or aws:kms, or the x-amz-server-side-encryption-customer-algorithm header with a value of AES256.
sourcepub fn get_denies_unencrypted_object_uploads(&self) -> &Option<i64>
pub fn get_denies_unencrypted_object_uploads(&self) -> &Option<i64>
The total number of buckets whose bucket policies require server-side encryption of new objects. PutObject requests for these buckets must include a valid server-side encryption header: the x-amz-server-side-encryption header with a value of AES256 or aws:kms, or the x-amz-server-side-encryption-customer-algorithm header with a value of AES256.
sourcepub fn unknown(self, input: i64) -> Self
pub fn unknown(self, input: i64) -> Self
The total number of buckets that Amazon Macie wasn't able to evaluate server-side encryption requirements for. Macie can't determine whether the bucket policies for these buckets require server-side encryption of new objects.
sourcepub fn set_unknown(self, input: Option<i64>) -> Self
pub fn set_unknown(self, input: Option<i64>) -> Self
The total number of buckets that Amazon Macie wasn't able to evaluate server-side encryption requirements for. Macie can't determine whether the bucket policies for these buckets require server-side encryption of new objects.
sourcepub fn get_unknown(&self) -> &Option<i64>
pub fn get_unknown(&self) -> &Option<i64>
The total number of buckets that Amazon Macie wasn't able to evaluate server-side encryption requirements for. Macie can't determine whether the bucket policies for these buckets require server-side encryption of new objects.
sourcepub fn build(self) -> BucketCountPolicyAllowsUnencryptedObjectUploads
pub fn build(self) -> BucketCountPolicyAllowsUnencryptedObjectUploads
Consumes the builder and constructs a BucketCountPolicyAllowsUnencryptedObjectUploads.
Trait Implementations§
source§impl Clone for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
impl Clone for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
source§fn clone(&self) -> BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
fn clone(&self) -> BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
impl Default for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
source§fn default() -> BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
fn default() -> BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
source§impl PartialEq for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
impl PartialEq for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
source§fn eq(
&self,
other: &BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder,
) -> bool
fn eq( &self, other: &BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder, ) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
Auto Trait Implementations§
impl Freeze for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
impl RefUnwindSafe for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
impl Send for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
impl Sync for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
impl Unpin for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
impl UnwindSafe for BucketCountPolicyAllowsUnencryptedObjectUploadsBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more