/** * 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 ARCZonalShift { namespace Model { /** */ class UpdateZonalShiftRequest : public ARCZonalShiftRequest { public: AWS_ARCZONALSHIFT_API UpdateZonalShiftRequest(); // 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 "UpdateZonalShift"; } AWS_ARCZONALSHIFT_API Aws::String SerializePayload() const override; /** *

A comment that you enter about the zonal shift. Only the latest comment is * retained; no comment history is maintained. A new comment overwrites any * existing comment string.

*/ inline const Aws::String& GetComment() const{ return m_comment; } /** *

A comment that you enter about the zonal shift. Only the latest comment is * retained; no comment history is maintained. A new comment overwrites any * existing comment string.

*/ inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; } /** *

A comment that you enter about the zonal shift. Only the latest comment is * retained; no comment history is maintained. A new comment overwrites any * existing comment string.

*/ inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; } /** *

A comment that you enter about the zonal shift. Only the latest comment is * retained; no comment history is maintained. A new comment overwrites any * existing comment string.

*/ inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); } /** *

A comment that you enter about the zonal shift. Only the latest comment is * retained; no comment history is maintained. A new comment overwrites any * existing comment string.

*/ inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); } /** *

A comment that you enter about the zonal shift. Only the latest comment is * retained; no comment history is maintained. A new comment overwrites any * existing comment string.

*/ inline UpdateZonalShiftRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;} /** *

A comment that you enter about the zonal shift. Only the latest comment is * retained; no comment history is maintained. A new comment overwrites any * existing comment string.

*/ inline UpdateZonalShiftRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;} /** *

A comment that you enter about the zonal shift. Only the latest comment is * retained; no comment history is maintained. A new comment overwrites any * existing comment string.

*/ inline UpdateZonalShiftRequest& WithComment(const char* value) { SetComment(value); return *this;} /** *

The length of time that you want a zonal shift to be active, which Route 53 * ARC converts to an expiry time (expiration time). Zonal shifts are temporary. * You can set a zonal shift to be active initially for up to three days (72 * hours).

If you want to still keep traffic away from an Availability Zone, * you can update the zonal shift and set a new expiration. You can also cancel a * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no * space:

  • A lowercase letter m: To specify that the value * is in minutes.

  • A lowercase letter h: To specify that * the value is in hours.

For example: 20h means * the zonal shift expires in 20 hours. 120m means the zonal shift * expires in 120 minutes (2 hours).

*/ inline const Aws::String& GetExpiresIn() const{ return m_expiresIn; } /** *

The length of time that you want a zonal shift to be active, which Route 53 * ARC converts to an expiry time (expiration time). Zonal shifts are temporary. * You can set a zonal shift to be active initially for up to three days (72 * hours).

If you want to still keep traffic away from an Availability Zone, * you can update the zonal shift and set a new expiration. You can also cancel a * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no * space:

  • A lowercase letter m: To specify that the value * is in minutes.

  • A lowercase letter h: To specify that * the value is in hours.

For example: 20h means * the zonal shift expires in 20 hours. 120m means the zonal shift * expires in 120 minutes (2 hours).

*/ inline bool ExpiresInHasBeenSet() const { return m_expiresInHasBeenSet; } /** *

The length of time that you want a zonal shift to be active, which Route 53 * ARC converts to an expiry time (expiration time). Zonal shifts are temporary. * You can set a zonal shift to be active initially for up to three days (72 * hours).

If you want to still keep traffic away from an Availability Zone, * you can update the zonal shift and set a new expiration. You can also cancel a * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no * space:

  • A lowercase letter m: To specify that the value * is in minutes.

  • A lowercase letter h: To specify that * the value is in hours.

For example: 20h means * the zonal shift expires in 20 hours. 120m means the zonal shift * expires in 120 minutes (2 hours).

*/ inline void SetExpiresIn(const Aws::String& value) { m_expiresInHasBeenSet = true; m_expiresIn = value; } /** *

The length of time that you want a zonal shift to be active, which Route 53 * ARC converts to an expiry time (expiration time). Zonal shifts are temporary. * You can set a zonal shift to be active initially for up to three days (72 * hours).

If you want to still keep traffic away from an Availability Zone, * you can update the zonal shift and set a new expiration. You can also cancel a * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no * space:

  • A lowercase letter m: To specify that the value * is in minutes.

  • A lowercase letter h: To specify that * the value is in hours.

For example: 20h means * the zonal shift expires in 20 hours. 120m means the zonal shift * expires in 120 minutes (2 hours).

*/ inline void SetExpiresIn(Aws::String&& value) { m_expiresInHasBeenSet = true; m_expiresIn = std::move(value); } /** *

The length of time that you want a zonal shift to be active, which Route 53 * ARC converts to an expiry time (expiration time). Zonal shifts are temporary. * You can set a zonal shift to be active initially for up to three days (72 * hours).

If you want to still keep traffic away from an Availability Zone, * you can update the zonal shift and set a new expiration. You can also cancel a * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no * space:

  • A lowercase letter m: To specify that the value * is in minutes.

  • A lowercase letter h: To specify that * the value is in hours.

For example: 20h means * the zonal shift expires in 20 hours. 120m means the zonal shift * expires in 120 minutes (2 hours).

*/ inline void SetExpiresIn(const char* value) { m_expiresInHasBeenSet = true; m_expiresIn.assign(value); } /** *

The length of time that you want a zonal shift to be active, which Route 53 * ARC converts to an expiry time (expiration time). Zonal shifts are temporary. * You can set a zonal shift to be active initially for up to three days (72 * hours).

If you want to still keep traffic away from an Availability Zone, * you can update the zonal shift and set a new expiration. You can also cancel a * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no * space:

  • A lowercase letter m: To specify that the value * is in minutes.

  • A lowercase letter h: To specify that * the value is in hours.

For example: 20h means * the zonal shift expires in 20 hours. 120m means the zonal shift * expires in 120 minutes (2 hours).

*/ inline UpdateZonalShiftRequest& WithExpiresIn(const Aws::String& value) { SetExpiresIn(value); return *this;} /** *

The length of time that you want a zonal shift to be active, which Route 53 * ARC converts to an expiry time (expiration time). Zonal shifts are temporary. * You can set a zonal shift to be active initially for up to three days (72 * hours).

If you want to still keep traffic away from an Availability Zone, * you can update the zonal shift and set a new expiration. You can also cancel a * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no * space:

  • A lowercase letter m: To specify that the value * is in minutes.

  • A lowercase letter h: To specify that * the value is in hours.

For example: 20h means * the zonal shift expires in 20 hours. 120m means the zonal shift * expires in 120 minutes (2 hours).

*/ inline UpdateZonalShiftRequest& WithExpiresIn(Aws::String&& value) { SetExpiresIn(std::move(value)); return *this;} /** *

The length of time that you want a zonal shift to be active, which Route 53 * ARC converts to an expiry time (expiration time). Zonal shifts are temporary. * You can set a zonal shift to be active initially for up to three days (72 * hours).

If you want to still keep traffic away from an Availability Zone, * you can update the zonal shift and set a new expiration. You can also cancel a * zonal shift, before it expires, for example, if you're ready to restore traffic * to the Availability Zone.

To set a length of time for a zonal shift to be * active, specify a whole number, and then one of the following, with no * space:

  • A lowercase letter m: To specify that the value * is in minutes.

  • A lowercase letter h: To specify that * the value is in hours.

For example: 20h means * the zonal shift expires in 20 hours. 120m means the zonal shift * expires in 120 minutes (2 hours).

*/ inline UpdateZonalShiftRequest& WithExpiresIn(const char* value) { SetExpiresIn(value); return *this;} /** *

The identifier of a zonal shift.

*/ inline const Aws::String& GetZonalShiftId() const{ return m_zonalShiftId; } /** *

The identifier of a zonal shift.

*/ inline bool ZonalShiftIdHasBeenSet() const { return m_zonalShiftIdHasBeenSet; } /** *

The identifier of a zonal shift.

*/ inline void SetZonalShiftId(const Aws::String& value) { m_zonalShiftIdHasBeenSet = true; m_zonalShiftId = value; } /** *

The identifier of a zonal shift.

*/ inline void SetZonalShiftId(Aws::String&& value) { m_zonalShiftIdHasBeenSet = true; m_zonalShiftId = std::move(value); } /** *

The identifier of a zonal shift.

*/ inline void SetZonalShiftId(const char* value) { m_zonalShiftIdHasBeenSet = true; m_zonalShiftId.assign(value); } /** *

The identifier of a zonal shift.

*/ inline UpdateZonalShiftRequest& WithZonalShiftId(const Aws::String& value) { SetZonalShiftId(value); return *this;} /** *

The identifier of a zonal shift.

*/ inline UpdateZonalShiftRequest& WithZonalShiftId(Aws::String&& value) { SetZonalShiftId(std::move(value)); return *this;} /** *

The identifier of a zonal shift.

*/ inline UpdateZonalShiftRequest& WithZonalShiftId(const char* value) { SetZonalShiftId(value); return *this;} private: Aws::String m_comment; bool m_commentHasBeenSet = false; Aws::String m_expiresIn; bool m_expiresInHasBeenSet = false; Aws::String m_zonalShiftId; bool m_zonalShiftIdHasBeenSet = false; }; } // namespace Model } // namespace ARCZonalShift } // namespace Aws