/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class ModifyManagedPrefixListRequest : public EC2Request { public: AWS_EC2_API ModifyManagedPrefixListRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "ModifyManagedPrefixList"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline ModifyManagedPrefixListRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The ID of the prefix list.

*/ inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; } /** *

The ID of the prefix list.

*/ inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; } /** *

The ID of the prefix list.

*/ inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; } /** *

The ID of the prefix list.

*/ inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); } /** *

The ID of the prefix list.

*/ inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); } /** *

The ID of the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;} /** *

The ID of the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;} /** *

The ID of the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;} /** *

The current version of the prefix list.

*/ inline long long GetCurrentVersion() const{ return m_currentVersion; } /** *

The current version of the prefix list.

*/ inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; } /** *

The current version of the prefix list.

*/ inline void SetCurrentVersion(long long value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; } /** *

The current version of the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithCurrentVersion(long long value) { SetCurrentVersion(value); return *this;} /** *

A name for the prefix list.

*/ inline const Aws::String& GetPrefixListName() const{ return m_prefixListName; } /** *

A name for the prefix list.

*/ inline bool PrefixListNameHasBeenSet() const { return m_prefixListNameHasBeenSet; } /** *

A name for the prefix list.

*/ inline void SetPrefixListName(const Aws::String& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = value; } /** *

A name for the prefix list.

*/ inline void SetPrefixListName(Aws::String&& value) { m_prefixListNameHasBeenSet = true; m_prefixListName = std::move(value); } /** *

A name for the prefix list.

*/ inline void SetPrefixListName(const char* value) { m_prefixListNameHasBeenSet = true; m_prefixListName.assign(value); } /** *

A name for the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithPrefixListName(const Aws::String& value) { SetPrefixListName(value); return *this;} /** *

A name for the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithPrefixListName(Aws::String&& value) { SetPrefixListName(std::move(value)); return *this;} /** *

A name for the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithPrefixListName(const char* value) { SetPrefixListName(value); return *this;} /** *

One or more entries to add to the prefix list.

*/ inline const Aws::Vector& GetAddEntries() const{ return m_addEntries; } /** *

One or more entries to add to the prefix list.

*/ inline bool AddEntriesHasBeenSet() const { return m_addEntriesHasBeenSet; } /** *

One or more entries to add to the prefix list.

*/ inline void SetAddEntries(const Aws::Vector& value) { m_addEntriesHasBeenSet = true; m_addEntries = value; } /** *

One or more entries to add to the prefix list.

*/ inline void SetAddEntries(Aws::Vector&& value) { m_addEntriesHasBeenSet = true; m_addEntries = std::move(value); } /** *

One or more entries to add to the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithAddEntries(const Aws::Vector& value) { SetAddEntries(value); return *this;} /** *

One or more entries to add to the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithAddEntries(Aws::Vector&& value) { SetAddEntries(std::move(value)); return *this;} /** *

One or more entries to add to the prefix list.

*/ inline ModifyManagedPrefixListRequest& AddAddEntries(const AddPrefixListEntry& value) { m_addEntriesHasBeenSet = true; m_addEntries.push_back(value); return *this; } /** *

One or more entries to add to the prefix list.

*/ inline ModifyManagedPrefixListRequest& AddAddEntries(AddPrefixListEntry&& value) { m_addEntriesHasBeenSet = true; m_addEntries.push_back(std::move(value)); return *this; } /** *

One or more entries to remove from the prefix list.

*/ inline const Aws::Vector& GetRemoveEntries() const{ return m_removeEntries; } /** *

One or more entries to remove from the prefix list.

*/ inline bool RemoveEntriesHasBeenSet() const { return m_removeEntriesHasBeenSet; } /** *

One or more entries to remove from the prefix list.

*/ inline void SetRemoveEntries(const Aws::Vector& value) { m_removeEntriesHasBeenSet = true; m_removeEntries = value; } /** *

One or more entries to remove from the prefix list.

*/ inline void SetRemoveEntries(Aws::Vector&& value) { m_removeEntriesHasBeenSet = true; m_removeEntries = std::move(value); } /** *

One or more entries to remove from the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithRemoveEntries(const Aws::Vector& value) { SetRemoveEntries(value); return *this;} /** *

One or more entries to remove from the prefix list.

*/ inline ModifyManagedPrefixListRequest& WithRemoveEntries(Aws::Vector&& value) { SetRemoveEntries(std::move(value)); return *this;} /** *

One or more entries to remove from the prefix list.

*/ inline ModifyManagedPrefixListRequest& AddRemoveEntries(const RemovePrefixListEntry& value) { m_removeEntriesHasBeenSet = true; m_removeEntries.push_back(value); return *this; } /** *

One or more entries to remove from the prefix list.

*/ inline ModifyManagedPrefixListRequest& AddRemoveEntries(RemovePrefixListEntry&& value) { m_removeEntriesHasBeenSet = true; m_removeEntries.push_back(std::move(value)); return *this; } /** *

The maximum number of entries for the prefix list. You cannot modify the * entries of a prefix list and modify the size of a prefix list at the same * time.

If any of the resources that reference the prefix list cannot * support the new maximum size, the modify operation fails. Check the state * message for the IDs of the first ten resources that do not support the new * maximum size.

*/ inline int GetMaxEntries() const{ return m_maxEntries; } /** *

The maximum number of entries for the prefix list. You cannot modify the * entries of a prefix list and modify the size of a prefix list at the same * time.

If any of the resources that reference the prefix list cannot * support the new maximum size, the modify operation fails. Check the state * message for the IDs of the first ten resources that do not support the new * maximum size.

*/ inline bool MaxEntriesHasBeenSet() const { return m_maxEntriesHasBeenSet; } /** *

The maximum number of entries for the prefix list. You cannot modify the * entries of a prefix list and modify the size of a prefix list at the same * time.

If any of the resources that reference the prefix list cannot * support the new maximum size, the modify operation fails. Check the state * message for the IDs of the first ten resources that do not support the new * maximum size.

*/ inline void SetMaxEntries(int value) { m_maxEntriesHasBeenSet = true; m_maxEntries = value; } /** *

The maximum number of entries for the prefix list. You cannot modify the * entries of a prefix list and modify the size of a prefix list at the same * time.

If any of the resources that reference the prefix list cannot * support the new maximum size, the modify operation fails. Check the state * message for the IDs of the first ten resources that do not support the new * maximum size.

*/ inline ModifyManagedPrefixListRequest& WithMaxEntries(int value) { SetMaxEntries(value); return *this;} private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_prefixListId; bool m_prefixListIdHasBeenSet = false; long long m_currentVersion; bool m_currentVersionHasBeenSet = false; Aws::String m_prefixListName; bool m_prefixListNameHasBeenSet = false; Aws::Vector m_addEntries; bool m_addEntriesHasBeenSet = false; Aws::Vector m_removeEntries; bool m_removeEntriesHasBeenSet = false; int m_maxEntries; bool m_maxEntriesHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws