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

The identifier of the certificate object that you are updating.

*/ inline const Aws::String& GetCertificateId() const{ return m_certificateId; } /** *

The identifier of the certificate object that you are updating.

*/ inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; } /** *

The identifier of the certificate object that you are updating.

*/ inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; } /** *

The identifier of the certificate object that you are updating.

*/ inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); } /** *

The identifier of the certificate object that you are updating.

*/ inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); } /** *

The identifier of the certificate object that you are updating.

*/ inline UpdateCertificateRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;} /** *

The identifier of the certificate object that you are updating.

*/ inline UpdateCertificateRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;} /** *

The identifier of the certificate object that you are updating.

*/ inline UpdateCertificateRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;} /** *

An optional date that specifies when the certificate becomes active.

*/ inline const Aws::Utils::DateTime& GetActiveDate() const{ return m_activeDate; } /** *

An optional date that specifies when the certificate becomes active.

*/ inline bool ActiveDateHasBeenSet() const { return m_activeDateHasBeenSet; } /** *

An optional date that specifies when the certificate becomes active.

*/ inline void SetActiveDate(const Aws::Utils::DateTime& value) { m_activeDateHasBeenSet = true; m_activeDate = value; } /** *

An optional date that specifies when the certificate becomes active.

*/ inline void SetActiveDate(Aws::Utils::DateTime&& value) { m_activeDateHasBeenSet = true; m_activeDate = std::move(value); } /** *

An optional date that specifies when the certificate becomes active.

*/ inline UpdateCertificateRequest& WithActiveDate(const Aws::Utils::DateTime& value) { SetActiveDate(value); return *this;} /** *

An optional date that specifies when the certificate becomes active.

*/ inline UpdateCertificateRequest& WithActiveDate(Aws::Utils::DateTime&& value) { SetActiveDate(std::move(value)); return *this;} /** *

An optional date that specifies when the certificate becomes inactive.

*/ inline const Aws::Utils::DateTime& GetInactiveDate() const{ return m_inactiveDate; } /** *

An optional date that specifies when the certificate becomes inactive.

*/ inline bool InactiveDateHasBeenSet() const { return m_inactiveDateHasBeenSet; } /** *

An optional date that specifies when the certificate becomes inactive.

*/ inline void SetInactiveDate(const Aws::Utils::DateTime& value) { m_inactiveDateHasBeenSet = true; m_inactiveDate = value; } /** *

An optional date that specifies when the certificate becomes inactive.

*/ inline void SetInactiveDate(Aws::Utils::DateTime&& value) { m_inactiveDateHasBeenSet = true; m_inactiveDate = std::move(value); } /** *

An optional date that specifies when the certificate becomes inactive.

*/ inline UpdateCertificateRequest& WithInactiveDate(const Aws::Utils::DateTime& value) { SetInactiveDate(value); return *this;} /** *

An optional date that specifies when the certificate becomes inactive.

*/ inline UpdateCertificateRequest& WithInactiveDate(Aws::Utils::DateTime&& value) { SetInactiveDate(std::move(value)); return *this;} /** *

A short description to help identify the certificate.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A short description to help identify the certificate.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A short description to help identify the certificate.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A short description to help identify the certificate.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A short description to help identify the certificate.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A short description to help identify the certificate.

*/ inline UpdateCertificateRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A short description to help identify the certificate.

*/ inline UpdateCertificateRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A short description to help identify the certificate.

*/ inline UpdateCertificateRequest& WithDescription(const char* value) { SetDescription(value); return *this;} private: Aws::String m_certificateId; bool m_certificateIdHasBeenSet = false; Aws::Utils::DateTime m_activeDate; bool m_activeDateHasBeenSet = false; Aws::Utils::DateTime m_inactiveDate; bool m_inactiveDateHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; }; } // namespace Model } // namespace Transfer } // namespace Aws