/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace DirectoryService { namespace Model { /** */ class UpdateSettingsRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API UpdateSettingsRequest(); // 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 "UpdateSettings"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the directory for which to update settings.

*/ inline const Aws::String& GetDirectoryId() const{ return m_directoryId; } /** *

The identifier of the directory for which to update settings.

*/ inline bool DirectoryIdHasBeenSet() const { return m_directoryIdHasBeenSet; } /** *

The identifier of the directory for which to update settings.

*/ inline void SetDirectoryId(const Aws::String& value) { m_directoryIdHasBeenSet = true; m_directoryId = value; } /** *

The identifier of the directory for which to update settings.

*/ inline void SetDirectoryId(Aws::String&& value) { m_directoryIdHasBeenSet = true; m_directoryId = std::move(value); } /** *

The identifier of the directory for which to update settings.

*/ inline void SetDirectoryId(const char* value) { m_directoryIdHasBeenSet = true; m_directoryId.assign(value); } /** *

The identifier of the directory for which to update settings.

*/ inline UpdateSettingsRequest& WithDirectoryId(const Aws::String& value) { SetDirectoryId(value); return *this;} /** *

The identifier of the directory for which to update settings.

*/ inline UpdateSettingsRequest& WithDirectoryId(Aws::String&& value) { SetDirectoryId(std::move(value)); return *this;} /** *

The identifier of the directory for which to update settings.

*/ inline UpdateSettingsRequest& WithDirectoryId(const char* value) { SetDirectoryId(value); return *this;} /** *

The list of Setting objects.

*/ inline const Aws::Vector& GetSettings() const{ return m_settings; } /** *

The list of Setting objects.

*/ inline bool SettingsHasBeenSet() const { return m_settingsHasBeenSet; } /** *

The list of Setting objects.

*/ inline void SetSettings(const Aws::Vector& value) { m_settingsHasBeenSet = true; m_settings = value; } /** *

The list of Setting objects.

*/ inline void SetSettings(Aws::Vector&& value) { m_settingsHasBeenSet = true; m_settings = std::move(value); } /** *

The list of Setting objects.

*/ inline UpdateSettingsRequest& WithSettings(const Aws::Vector& value) { SetSettings(value); return *this;} /** *

The list of Setting objects.

*/ inline UpdateSettingsRequest& WithSettings(Aws::Vector&& value) { SetSettings(std::move(value)); return *this;} /** *

The list of Setting objects.

*/ inline UpdateSettingsRequest& AddSettings(const Setting& value) { m_settingsHasBeenSet = true; m_settings.push_back(value); return *this; } /** *

The list of Setting objects.

*/ inline UpdateSettingsRequest& AddSettings(Setting&& value) { m_settingsHasBeenSet = true; m_settings.push_back(std::move(value)); return *this; } private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; Aws::Vector m_settings; bool m_settingsHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws