/** * 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 Greengrass { namespace Model { /** */ class UpdateGroupCertificateConfigurationRequest : public GreengrassRequest { public: AWS_GREENGRASS_API UpdateGroupCertificateConfigurationRequest(); // 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 "UpdateGroupCertificateConfiguration"; } AWS_GREENGRASS_API Aws::String SerializePayload() const override; /** * The amount of time remaining before the certificate expires, in milliseconds. */ inline const Aws::String& GetCertificateExpiryInMilliseconds() const{ return m_certificateExpiryInMilliseconds; } /** * The amount of time remaining before the certificate expires, in milliseconds. */ inline bool CertificateExpiryInMillisecondsHasBeenSet() const { return m_certificateExpiryInMillisecondsHasBeenSet; } /** * The amount of time remaining before the certificate expires, in milliseconds. */ inline void SetCertificateExpiryInMilliseconds(const Aws::String& value) { m_certificateExpiryInMillisecondsHasBeenSet = true; m_certificateExpiryInMilliseconds = value; } /** * The amount of time remaining before the certificate expires, in milliseconds. */ inline void SetCertificateExpiryInMilliseconds(Aws::String&& value) { m_certificateExpiryInMillisecondsHasBeenSet = true; m_certificateExpiryInMilliseconds = std::move(value); } /** * The amount of time remaining before the certificate expires, in milliseconds. */ inline void SetCertificateExpiryInMilliseconds(const char* value) { m_certificateExpiryInMillisecondsHasBeenSet = true; m_certificateExpiryInMilliseconds.assign(value); } /** * The amount of time remaining before the certificate expires, in milliseconds. */ inline UpdateGroupCertificateConfigurationRequest& WithCertificateExpiryInMilliseconds(const Aws::String& value) { SetCertificateExpiryInMilliseconds(value); return *this;} /** * The amount of time remaining before the certificate expires, in milliseconds. */ inline UpdateGroupCertificateConfigurationRequest& WithCertificateExpiryInMilliseconds(Aws::String&& value) { SetCertificateExpiryInMilliseconds(std::move(value)); return *this;} /** * The amount of time remaining before the certificate expires, in milliseconds. */ inline UpdateGroupCertificateConfigurationRequest& WithCertificateExpiryInMilliseconds(const char* value) { SetCertificateExpiryInMilliseconds(value); return *this;} /** * The ID of the Greengrass group. */ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** * The ID of the Greengrass group. */ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** * The ID of the Greengrass group. */ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** * The ID of the Greengrass group. */ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** * The ID of the Greengrass group. */ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** * The ID of the Greengrass group. */ inline UpdateGroupCertificateConfigurationRequest& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** * The ID of the Greengrass group. */ inline UpdateGroupCertificateConfigurationRequest& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** * The ID of the Greengrass group. */ inline UpdateGroupCertificateConfigurationRequest& WithGroupId(const char* value) { SetGroupId(value); return *this;} private: Aws::String m_certificateExpiryInMilliseconds; bool m_certificateExpiryInMillisecondsHasBeenSet = false; Aws::String m_groupId; bool m_groupIdHasBeenSet = false; }; } // namespace Model } // namespace Greengrass } // namespace Aws