/** * 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 Organizations { namespace Model { /** */ class UpdateOrganizationalUnitRequest : public OrganizationsRequest { public: AWS_ORGANIZATIONS_API UpdateOrganizationalUnitRequest(); // 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 "UpdateOrganizationalUnit"; } AWS_ORGANIZATIONS_API Aws::String SerializePayload() const override; AWS_ORGANIZATIONS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique identifier (ID) of the OU that you want to rename. You can get the * ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational * unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or * digits (the ID of the root that contains the OU). This string is followed by a * second "-" dash and from 8 to 32 additional lowercase letters or digits.

*/ inline const Aws::String& GetOrganizationalUnitId() const{ return m_organizationalUnitId; } /** *

The unique identifier (ID) of the OU that you want to rename. You can get the * ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational * unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or * digits (the ID of the root that contains the OU). This string is followed by a * second "-" dash and from 8 to 32 additional lowercase letters or digits.

*/ inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; } /** *

The unique identifier (ID) of the OU that you want to rename. You can get the * ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational * unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or * digits (the ID of the root that contains the OU). This string is followed by a * second "-" dash and from 8 to 32 additional lowercase letters or digits.

*/ inline void SetOrganizationalUnitId(const Aws::String& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = value; } /** *

The unique identifier (ID) of the OU that you want to rename. You can get the * ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational * unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or * digits (the ID of the root that contains the OU). This string is followed by a * second "-" dash and from 8 to 32 additional lowercase letters or digits.

*/ inline void SetOrganizationalUnitId(Aws::String&& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = std::move(value); } /** *

The unique identifier (ID) of the OU that you want to rename. You can get the * ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational * unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or * digits (the ID of the root that contains the OU). This string is followed by a * second "-" dash and from 8 to 32 additional lowercase letters or digits.

*/ inline void SetOrganizationalUnitId(const char* value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId.assign(value); } /** *

The unique identifier (ID) of the OU that you want to rename. You can get the * ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational * unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or * digits (the ID of the root that contains the OU). This string is followed by a * second "-" dash and from 8 to 32 additional lowercase letters or digits.

*/ inline UpdateOrganizationalUnitRequest& WithOrganizationalUnitId(const Aws::String& value) { SetOrganizationalUnitId(value); return *this;} /** *

The unique identifier (ID) of the OU that you want to rename. You can get the * ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational * unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or * digits (the ID of the root that contains the OU). This string is followed by a * second "-" dash and from 8 to 32 additional lowercase letters or digits.

*/ inline UpdateOrganizationalUnitRequest& WithOrganizationalUnitId(Aws::String&& value) { SetOrganizationalUnitId(std::move(value)); return *this;} /** *

The unique identifier (ID) of the OU that you want to rename. You can get the * ID from the ListOrganizationalUnitsForParent operation.

The regex pattern for an organizational * unit ID string requires "ou-" followed by from 4 to 32 lowercase letters or * digits (the ID of the root that contains the OU). This string is followed by a * second "-" dash and from 8 to 32 additional lowercase letters or digits.

*/ inline UpdateOrganizationalUnitRequest& WithOrganizationalUnitId(const char* value) { SetOrganizationalUnitId(value); return *this;} /** *

The new name that you want to assign to the OU.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The new name that you want to assign to the OU.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The new name that you want to assign to the OU.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The new name that you want to assign to the OU.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The new name that you want to assign to the OU.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The new name that you want to assign to the OU.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline UpdateOrganizationalUnitRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The new name that you want to assign to the OU.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline UpdateOrganizationalUnitRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The new name that you want to assign to the OU.

The regex pattern that is used to * validate this parameter is a string of any of the characters in the ASCII * character range.

*/ inline UpdateOrganizationalUnitRequest& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_organizationalUnitId; bool m_organizationalUnitIdHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace Organizations } // namespace Aws