/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace FMS { namespace Model { /** *

Configures the accounts within the administrator's Organizations organization * that the specified Firewall Manager administrator can apply policies * to.

See Also:

AWS * API Reference

*/ class AccountScope { public: AWS_FMS_API AccountScope(); AWS_FMS_API AccountScope(Aws::Utils::Json::JsonView jsonValue); AWS_FMS_API AccountScope& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The list of accounts within the organization that the specified Firewall * Manager administrator either can or cannot apply policies to, based on the value * of ExcludeSpecifiedAccounts. If * ExcludeSpecifiedAccounts is set to true, then the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts in this list. If * ExcludeSpecifiedAccounts is set to false, then the * Firewall Manager administrator can only apply policies to the accounts in this * list.

*/ inline const Aws::Vector& GetAccounts() const{ return m_accounts; } /** *

The list of accounts within the organization that the specified Firewall * Manager administrator either can or cannot apply policies to, based on the value * of ExcludeSpecifiedAccounts. If * ExcludeSpecifiedAccounts is set to true, then the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts in this list. If * ExcludeSpecifiedAccounts is set to false, then the * Firewall Manager administrator can only apply policies to the accounts in this * list.

*/ inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; } /** *

The list of accounts within the organization that the specified Firewall * Manager administrator either can or cannot apply policies to, based on the value * of ExcludeSpecifiedAccounts. If * ExcludeSpecifiedAccounts is set to true, then the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts in this list. If * ExcludeSpecifiedAccounts is set to false, then the * Firewall Manager administrator can only apply policies to the accounts in this * list.

*/ inline void SetAccounts(const Aws::Vector& value) { m_accountsHasBeenSet = true; m_accounts = value; } /** *

The list of accounts within the organization that the specified Firewall * Manager administrator either can or cannot apply policies to, based on the value * of ExcludeSpecifiedAccounts. If * ExcludeSpecifiedAccounts is set to true, then the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts in this list. If * ExcludeSpecifiedAccounts is set to false, then the * Firewall Manager administrator can only apply policies to the accounts in this * list.

*/ inline void SetAccounts(Aws::Vector&& value) { m_accountsHasBeenSet = true; m_accounts = std::move(value); } /** *

The list of accounts within the organization that the specified Firewall * Manager administrator either can or cannot apply policies to, based on the value * of ExcludeSpecifiedAccounts. If * ExcludeSpecifiedAccounts is set to true, then the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts in this list. If * ExcludeSpecifiedAccounts is set to false, then the * Firewall Manager administrator can only apply policies to the accounts in this * list.

*/ inline AccountScope& WithAccounts(const Aws::Vector& value) { SetAccounts(value); return *this;} /** *

The list of accounts within the organization that the specified Firewall * Manager administrator either can or cannot apply policies to, based on the value * of ExcludeSpecifiedAccounts. If * ExcludeSpecifiedAccounts is set to true, then the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts in this list. If * ExcludeSpecifiedAccounts is set to false, then the * Firewall Manager administrator can only apply policies to the accounts in this * list.

*/ inline AccountScope& WithAccounts(Aws::Vector&& value) { SetAccounts(std::move(value)); return *this;} /** *

The list of accounts within the organization that the specified Firewall * Manager administrator either can or cannot apply policies to, based on the value * of ExcludeSpecifiedAccounts. If * ExcludeSpecifiedAccounts is set to true, then the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts in this list. If * ExcludeSpecifiedAccounts is set to false, then the * Firewall Manager administrator can only apply policies to the accounts in this * list.

*/ inline AccountScope& AddAccounts(const Aws::String& value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; } /** *

The list of accounts within the organization that the specified Firewall * Manager administrator either can or cannot apply policies to, based on the value * of ExcludeSpecifiedAccounts. If * ExcludeSpecifiedAccounts is set to true, then the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts in this list. If * ExcludeSpecifiedAccounts is set to false, then the * Firewall Manager administrator can only apply policies to the accounts in this * list.

*/ inline AccountScope& AddAccounts(Aws::String&& value) { m_accountsHasBeenSet = true; m_accounts.push_back(std::move(value)); return *this; } /** *

The list of accounts within the organization that the specified Firewall * Manager administrator either can or cannot apply policies to, based on the value * of ExcludeSpecifiedAccounts. If * ExcludeSpecifiedAccounts is set to true, then the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts in this list. If * ExcludeSpecifiedAccounts is set to false, then the * Firewall Manager administrator can only apply policies to the accounts in this * list.

*/ inline AccountScope& AddAccounts(const char* value) { m_accountsHasBeenSet = true; m_accounts.push_back(value); return *this; } /** *

A boolean value that indicates if the administrator can apply policies to all * accounts within an organization. If true, the administrator can apply policies * to all accounts within the organization. You can either enable management of all * accounts through this operation, or you can specify a list of accounts to manage * in AccountScope$Accounts. You cannot specify both.

*/ inline bool GetAllAccountsEnabled() const{ return m_allAccountsEnabled; } /** *

A boolean value that indicates if the administrator can apply policies to all * accounts within an organization. If true, the administrator can apply policies * to all accounts within the organization. You can either enable management of all * accounts through this operation, or you can specify a list of accounts to manage * in AccountScope$Accounts. You cannot specify both.

*/ inline bool AllAccountsEnabledHasBeenSet() const { return m_allAccountsEnabledHasBeenSet; } /** *

A boolean value that indicates if the administrator can apply policies to all * accounts within an organization. If true, the administrator can apply policies * to all accounts within the organization. You can either enable management of all * accounts through this operation, or you can specify a list of accounts to manage * in AccountScope$Accounts. You cannot specify both.

*/ inline void SetAllAccountsEnabled(bool value) { m_allAccountsEnabledHasBeenSet = true; m_allAccountsEnabled = value; } /** *

A boolean value that indicates if the administrator can apply policies to all * accounts within an organization. If true, the administrator can apply policies * to all accounts within the organization. You can either enable management of all * accounts through this operation, or you can specify a list of accounts to manage * in AccountScope$Accounts. You cannot specify both.

*/ inline AccountScope& WithAllAccountsEnabled(bool value) { SetAllAccountsEnabled(value); return *this;} /** *

A boolean value that excludes the accounts in * AccountScope$Accounts from the administrator's scope. If true, the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts listed in * AccountScope$Accounts. You can either specify a list of accounts to * exclude by AccountScope$Accounts, or you can enable management of * all accounts by AccountScope$AllAccountsEnabled. You cannot specify * both.

*/ inline bool GetExcludeSpecifiedAccounts() const{ return m_excludeSpecifiedAccounts; } /** *

A boolean value that excludes the accounts in * AccountScope$Accounts from the administrator's scope. If true, the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts listed in * AccountScope$Accounts. You can either specify a list of accounts to * exclude by AccountScope$Accounts, or you can enable management of * all accounts by AccountScope$AllAccountsEnabled. You cannot specify * both.

*/ inline bool ExcludeSpecifiedAccountsHasBeenSet() const { return m_excludeSpecifiedAccountsHasBeenSet; } /** *

A boolean value that excludes the accounts in * AccountScope$Accounts from the administrator's scope. If true, the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts listed in * AccountScope$Accounts. You can either specify a list of accounts to * exclude by AccountScope$Accounts, or you can enable management of * all accounts by AccountScope$AllAccountsEnabled. You cannot specify * both.

*/ inline void SetExcludeSpecifiedAccounts(bool value) { m_excludeSpecifiedAccountsHasBeenSet = true; m_excludeSpecifiedAccounts = value; } /** *

A boolean value that excludes the accounts in * AccountScope$Accounts from the administrator's scope. If true, the * Firewall Manager administrator can apply policies to all members of the * organization except for the accounts listed in * AccountScope$Accounts. You can either specify a list of accounts to * exclude by AccountScope$Accounts, or you can enable management of * all accounts by AccountScope$AllAccountsEnabled. You cannot specify * both.

*/ inline AccountScope& WithExcludeSpecifiedAccounts(bool value) { SetExcludeSpecifiedAccounts(value); return *this;} private: Aws::Vector m_accounts; bool m_accountsHasBeenSet = false; bool m_allAccountsEnabled; bool m_allAccountsEnabledHasBeenSet = false; bool m_excludeSpecifiedAccounts; bool m_excludeSpecifiedAccountsHasBeenSet = false; }; } // namespace Model } // namespace FMS } // namespace Aws