This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-macie2/include/aws/macie2/model/BucketPermissionConfiguration.h

115 lines
4.0 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/macie2/Macie2_EXPORTS.h>
#include <aws/macie2/model/AccountLevelPermissions.h>
#include <aws/macie2/model/BucketLevelPermissions.h>
#include <utility>
namespace Aws
{
namespace Utils
{
namespace Json
{
class JsonValue;
class JsonView;
} // namespace Json
} // namespace Utils
namespace Macie2
{
namespace Model
{
/**
* <p>The account-level and bucket-level permissions settings for an S3
* bucket.</p><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/macie2-2020-01-01/BucketPermissionConfiguration">AWS
* API Reference</a></p>
*/
class AWS_MACIE2_API BucketPermissionConfiguration
{
public:
BucketPermissionConfiguration();
BucketPermissionConfiguration(Aws::Utils::Json::JsonView jsonValue);
BucketPermissionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
Aws::Utils::Json::JsonValue Jsonize() const;
/**
* <p>The account-level permissions settings that apply to the bucket.</p>
*/
inline const AccountLevelPermissions& GetAccountLevelPermissions() const{ return m_accountLevelPermissions; }
/**
* <p>The account-level permissions settings that apply to the bucket.</p>
*/
inline bool AccountLevelPermissionsHasBeenSet() const { return m_accountLevelPermissionsHasBeenSet; }
/**
* <p>The account-level permissions settings that apply to the bucket.</p>
*/
inline void SetAccountLevelPermissions(const AccountLevelPermissions& value) { m_accountLevelPermissionsHasBeenSet = true; m_accountLevelPermissions = value; }
/**
* <p>The account-level permissions settings that apply to the bucket.</p>
*/
inline void SetAccountLevelPermissions(AccountLevelPermissions&& value) { m_accountLevelPermissionsHasBeenSet = true; m_accountLevelPermissions = std::move(value); }
/**
* <p>The account-level permissions settings that apply to the bucket.</p>
*/
inline BucketPermissionConfiguration& WithAccountLevelPermissions(const AccountLevelPermissions& value) { SetAccountLevelPermissions(value); return *this;}
/**
* <p>The account-level permissions settings that apply to the bucket.</p>
*/
inline BucketPermissionConfiguration& WithAccountLevelPermissions(AccountLevelPermissions&& value) { SetAccountLevelPermissions(std::move(value)); return *this;}
/**
* <p>The bucket-level permissions settings for the bucket.</p>
*/
inline const BucketLevelPermissions& GetBucketLevelPermissions() const{ return m_bucketLevelPermissions; }
/**
* <p>The bucket-level permissions settings for the bucket.</p>
*/
inline bool BucketLevelPermissionsHasBeenSet() const { return m_bucketLevelPermissionsHasBeenSet; }
/**
* <p>The bucket-level permissions settings for the bucket.</p>
*/
inline void SetBucketLevelPermissions(const BucketLevelPermissions& value) { m_bucketLevelPermissionsHasBeenSet = true; m_bucketLevelPermissions = value; }
/**
* <p>The bucket-level permissions settings for the bucket.</p>
*/
inline void SetBucketLevelPermissions(BucketLevelPermissions&& value) { m_bucketLevelPermissionsHasBeenSet = true; m_bucketLevelPermissions = std::move(value); }
/**
* <p>The bucket-level permissions settings for the bucket.</p>
*/
inline BucketPermissionConfiguration& WithBucketLevelPermissions(const BucketLevelPermissions& value) { SetBucketLevelPermissions(value); return *this;}
/**
* <p>The bucket-level permissions settings for the bucket.</p>
*/
inline BucketPermissionConfiguration& WithBucketLevelPermissions(BucketLevelPermissions&& value) { SetBucketLevelPermissions(std::move(value)); return *this;}
private:
AccountLevelPermissions m_accountLevelPermissions;
bool m_accountLevelPermissionsHasBeenSet;
BucketLevelPermissions m_bucketLevelPermissions;
bool m_bucketLevelPermissionsHasBeenSet;
};
} // namespace Model
} // namespace Macie2
} // namespace Aws