1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/iot/IoT_EXPORTS.h> 8 #include <aws/iot/IoTRequest.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 10 #include <utility> 11 12 namespace Aws 13 { 14 namespace IoT 15 { 16 namespace Model 17 { 18 19 /** 20 * <p>The input for the DeletePolicyVersion operation.</p><p><h3>See Also:</h3> 21 * <a 22 * href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/DeletePolicyVersionRequest">AWS 23 * API Reference</a></p> 24 */ 25 class AWS_IOT_API DeletePolicyVersionRequest : public IoTRequest 26 { 27 public: 28 DeletePolicyVersionRequest(); 29 30 // Service request name is the Operation name which will send this request out, 31 // each operation should has unique request name, so that we can get operation's name from this request. 32 // Note: this is not true for response, multiple operations may have the same response name, 33 // so we can not get operation's name from response. GetServiceRequestName()34 inline virtual const char* GetServiceRequestName() const override { return "DeletePolicyVersion"; } 35 36 Aws::String SerializePayload() const override; 37 38 39 /** 40 * <p>The name of the policy.</p> 41 */ GetPolicyName()42 inline const Aws::String& GetPolicyName() const{ return m_policyName; } 43 44 /** 45 * <p>The name of the policy.</p> 46 */ PolicyNameHasBeenSet()47 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; } 48 49 /** 50 * <p>The name of the policy.</p> 51 */ SetPolicyName(const Aws::String & value)52 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; } 53 54 /** 55 * <p>The name of the policy.</p> 56 */ SetPolicyName(Aws::String && value)57 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); } 58 59 /** 60 * <p>The name of the policy.</p> 61 */ SetPolicyName(const char * value)62 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); } 63 64 /** 65 * <p>The name of the policy.</p> 66 */ WithPolicyName(const Aws::String & value)67 inline DeletePolicyVersionRequest& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} 68 69 /** 70 * <p>The name of the policy.</p> 71 */ WithPolicyName(Aws::String && value)72 inline DeletePolicyVersionRequest& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;} 73 74 /** 75 * <p>The name of the policy.</p> 76 */ WithPolicyName(const char * value)77 inline DeletePolicyVersionRequest& WithPolicyName(const char* value) { SetPolicyName(value); return *this;} 78 79 80 /** 81 * <p>The policy version ID.</p> 82 */ GetPolicyVersionId()83 inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; } 84 85 /** 86 * <p>The policy version ID.</p> 87 */ PolicyVersionIdHasBeenSet()88 inline bool PolicyVersionIdHasBeenSet() const { return m_policyVersionIdHasBeenSet; } 89 90 /** 91 * <p>The policy version ID.</p> 92 */ SetPolicyVersionId(const Aws::String & value)93 inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = value; } 94 95 /** 96 * <p>The policy version ID.</p> 97 */ SetPolicyVersionId(Aws::String && value)98 inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId = std::move(value); } 99 100 /** 101 * <p>The policy version ID.</p> 102 */ SetPolicyVersionId(const char * value)103 inline void SetPolicyVersionId(const char* value) { m_policyVersionIdHasBeenSet = true; m_policyVersionId.assign(value); } 104 105 /** 106 * <p>The policy version ID.</p> 107 */ WithPolicyVersionId(const Aws::String & value)108 inline DeletePolicyVersionRequest& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;} 109 110 /** 111 * <p>The policy version ID.</p> 112 */ WithPolicyVersionId(Aws::String && value)113 inline DeletePolicyVersionRequest& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;} 114 115 /** 116 * <p>The policy version ID.</p> 117 */ WithPolicyVersionId(const char * value)118 inline DeletePolicyVersionRequest& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;} 119 120 private: 121 122 Aws::String m_policyName; 123 bool m_policyNameHasBeenSet; 124 125 Aws::String m_policyVersionId; 126 bool m_policyVersionIdHasBeenSet; 127 }; 128 129 } // namespace Model 130 } // namespace IoT 131 } // namespace Aws 132