/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Options for Amazon S3 as a logging destination.See Also:
AWS
* API Reference
Indicates whether logging is enabled.
*/ inline bool GetEnabled() const{ return m_enabled; } /** *Indicates whether logging is enabled.
*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *Indicates whether logging is enabled.
*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *Indicates whether logging is enabled.
*/ inline VerifiedAccessLogS3Destination& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *The delivery status.
*/ inline const VerifiedAccessLogDeliveryStatus& GetDeliveryStatus() const{ return m_deliveryStatus; } /** *The delivery status.
*/ inline bool DeliveryStatusHasBeenSet() const { return m_deliveryStatusHasBeenSet; } /** *The delivery status.
*/ inline void SetDeliveryStatus(const VerifiedAccessLogDeliveryStatus& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = value; } /** *The delivery status.
*/ inline void SetDeliveryStatus(VerifiedAccessLogDeliveryStatus&& value) { m_deliveryStatusHasBeenSet = true; m_deliveryStatus = std::move(value); } /** *The delivery status.
*/ inline VerifiedAccessLogS3Destination& WithDeliveryStatus(const VerifiedAccessLogDeliveryStatus& value) { SetDeliveryStatus(value); return *this;} /** *The delivery status.
*/ inline VerifiedAccessLogS3Destination& WithDeliveryStatus(VerifiedAccessLogDeliveryStatus&& value) { SetDeliveryStatus(std::move(value)); return *this;} /** *The bucket name.
*/ inline const Aws::String& GetBucketName() const{ return m_bucketName; } /** *The bucket name.
*/ inline bool BucketNameHasBeenSet() const { return m_bucketNameHasBeenSet; } /** *The bucket name.
*/ inline void SetBucketName(const Aws::String& value) { m_bucketNameHasBeenSet = true; m_bucketName = value; } /** *The bucket name.
*/ inline void SetBucketName(Aws::String&& value) { m_bucketNameHasBeenSet = true; m_bucketName = std::move(value); } /** *The bucket name.
*/ inline void SetBucketName(const char* value) { m_bucketNameHasBeenSet = true; m_bucketName.assign(value); } /** *The bucket name.
*/ inline VerifiedAccessLogS3Destination& WithBucketName(const Aws::String& value) { SetBucketName(value); return *this;} /** *The bucket name.
*/ inline VerifiedAccessLogS3Destination& WithBucketName(Aws::String&& value) { SetBucketName(std::move(value)); return *this;} /** *The bucket name.
*/ inline VerifiedAccessLogS3Destination& WithBucketName(const char* value) { SetBucketName(value); return *this;} /** *The bucket prefix.
*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *The bucket prefix.
*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *The bucket prefix.
*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *The bucket prefix.
*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *The bucket prefix.
*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *The bucket prefix.
*/ inline VerifiedAccessLogS3Destination& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *The bucket prefix.
*/ inline VerifiedAccessLogS3Destination& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *The bucket prefix.
*/ inline VerifiedAccessLogS3Destination& WithPrefix(const char* value) { SetPrefix(value); return *this;} /** *The Amazon Web Services account number that owns the bucket.
*/ inline const Aws::String& GetBucketOwner() const{ return m_bucketOwner; } /** *The Amazon Web Services account number that owns the bucket.
*/ inline bool BucketOwnerHasBeenSet() const { return m_bucketOwnerHasBeenSet; } /** *The Amazon Web Services account number that owns the bucket.
*/ inline void SetBucketOwner(const Aws::String& value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner = value; } /** *The Amazon Web Services account number that owns the bucket.
*/ inline void SetBucketOwner(Aws::String&& value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner = std::move(value); } /** *The Amazon Web Services account number that owns the bucket.
*/ inline void SetBucketOwner(const char* value) { m_bucketOwnerHasBeenSet = true; m_bucketOwner.assign(value); } /** *The Amazon Web Services account number that owns the bucket.
*/ inline VerifiedAccessLogS3Destination& WithBucketOwner(const Aws::String& value) { SetBucketOwner(value); return *this;} /** *The Amazon Web Services account number that owns the bucket.
*/ inline VerifiedAccessLogS3Destination& WithBucketOwner(Aws::String&& value) { SetBucketOwner(std::move(value)); return *this;} /** *The Amazon Web Services account number that owns the bucket.
*/ inline VerifiedAccessLogS3Destination& WithBucketOwner(const char* value) { SetBucketOwner(value); return *this;} private: bool m_enabled; bool m_enabledHasBeenSet = false; VerifiedAccessLogDeliveryStatus m_deliveryStatus; bool m_deliveryStatusHasBeenSet = false; Aws::String m_bucketName; bool m_bucketNameHasBeenSet = false; Aws::String m_prefix; bool m_prefixHasBeenSet = false; Aws::String m_bucketOwner; bool m_bucketOwnerHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws