/** * 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 UpdateDirectorySetupRequest : public DirectoryServiceRequest { public: AWS_DIRECTORYSERVICE_API UpdateDirectorySetupRequest(); // 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 "UpdateDirectorySetup"; } AWS_DIRECTORYSERVICE_API Aws::String SerializePayload() const override; AWS_DIRECTORYSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The identifier of the directory on which you want to perform the update. *

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

The identifier of the directory on which you want to perform the update. *

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

The identifier of the directory on which you want to perform the update. *

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

The identifier of the directory on which you want to perform the update. *

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

The identifier of the directory on which you want to perform the update. *

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

The identifier of the directory on which you want to perform the update. *

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

The identifier of the directory on which you want to perform the update. *

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

The identifier of the directory on which you want to perform the update. *

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

The type of update that needs to be performed on the directory. For example, * OS.

*/ inline const UpdateType& GetUpdateType() const{ return m_updateType; } /** *

The type of update that needs to be performed on the directory. For example, * OS.

*/ inline bool UpdateTypeHasBeenSet() const { return m_updateTypeHasBeenSet; } /** *

The type of update that needs to be performed on the directory. For example, * OS.

*/ inline void SetUpdateType(const UpdateType& value) { m_updateTypeHasBeenSet = true; m_updateType = value; } /** *

The type of update that needs to be performed on the directory. For example, * OS.

*/ inline void SetUpdateType(UpdateType&& value) { m_updateTypeHasBeenSet = true; m_updateType = std::move(value); } /** *

The type of update that needs to be performed on the directory. For example, * OS.

*/ inline UpdateDirectorySetupRequest& WithUpdateType(const UpdateType& value) { SetUpdateType(value); return *this;} /** *

The type of update that needs to be performed on the directory. For example, * OS.

*/ inline UpdateDirectorySetupRequest& WithUpdateType(UpdateType&& value) { SetUpdateType(std::move(value)); return *this;} /** *

The settings for the OS update that needs to be performed on the directory. *

*/ inline const OSUpdateSettings& GetOSUpdateSettings() const{ return m_oSUpdateSettings; } /** *

The settings for the OS update that needs to be performed on the directory. *

*/ inline bool OSUpdateSettingsHasBeenSet() const { return m_oSUpdateSettingsHasBeenSet; } /** *

The settings for the OS update that needs to be performed on the directory. *

*/ inline void SetOSUpdateSettings(const OSUpdateSettings& value) { m_oSUpdateSettingsHasBeenSet = true; m_oSUpdateSettings = value; } /** *

The settings for the OS update that needs to be performed on the directory. *

*/ inline void SetOSUpdateSettings(OSUpdateSettings&& value) { m_oSUpdateSettingsHasBeenSet = true; m_oSUpdateSettings = std::move(value); } /** *

The settings for the OS update that needs to be performed on the directory. *

*/ inline UpdateDirectorySetupRequest& WithOSUpdateSettings(const OSUpdateSettings& value) { SetOSUpdateSettings(value); return *this;} /** *

The settings for the OS update that needs to be performed on the directory. *

*/ inline UpdateDirectorySetupRequest& WithOSUpdateSettings(OSUpdateSettings&& value) { SetOSUpdateSettings(std::move(value)); return *this;} /** *

The boolean that specifies if a snapshot for the directory needs to be taken * before updating the directory.

*/ inline bool GetCreateSnapshotBeforeUpdate() const{ return m_createSnapshotBeforeUpdate; } /** *

The boolean that specifies if a snapshot for the directory needs to be taken * before updating the directory.

*/ inline bool CreateSnapshotBeforeUpdateHasBeenSet() const { return m_createSnapshotBeforeUpdateHasBeenSet; } /** *

The boolean that specifies if a snapshot for the directory needs to be taken * before updating the directory.

*/ inline void SetCreateSnapshotBeforeUpdate(bool value) { m_createSnapshotBeforeUpdateHasBeenSet = true; m_createSnapshotBeforeUpdate = value; } /** *

The boolean that specifies if a snapshot for the directory needs to be taken * before updating the directory.

*/ inline UpdateDirectorySetupRequest& WithCreateSnapshotBeforeUpdate(bool value) { SetCreateSnapshotBeforeUpdate(value); return *this;} private: Aws::String m_directoryId; bool m_directoryIdHasBeenSet = false; UpdateType m_updateType; bool m_updateTypeHasBeenSet = false; OSUpdateSettings m_oSUpdateSettings; bool m_oSUpdateSettingsHasBeenSet = false; bool m_createSnapshotBeforeUpdate; bool m_createSnapshotBeforeUpdateHasBeenSet = false; }; } // namespace Model } // namespace DirectoryService } // namespace Aws