1 /* 2 * Copyright (C) 2006-2021 Registro.br. All rights reserved. 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions are 6 * met: 7 * 1. Redistribution of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. 9 * 2. Redistributions in binary form must reproduce the above copyright 10 * notice, this list of conditions and the following disclaimer in the 11 * documentation and/or other materials provided with the distribution. 12 * 13 * THIS SOFTWARE IS PROVIDED BY REGISTRO.BR ``AS IS AND ANY EXPRESS OR 14 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15 * WARRANTIE OF FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO 16 * EVENT SHALL REGISTRO.BR BE LIABLE FOR ANY DIRECT, INDIRECT, 17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 18 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 19 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 20 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR 21 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE 22 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 23 * DAMAGE. 24 */ 25 /* $Id$ */ 26 /** @file LaunchDeleteCmd.H 27 * @brief EPP LaunchDeleteCmd Class 28 */ 29 30 #ifndef __LAUNCH_DELETE_CMD_H__ 31 #define __LAUNCH_DELETE_CMD_H__ 32 33 #include <string> 34 35 #include "Launch.H" 36 37 using std::string; 38 39 LIBEPP_NICBR_NS_BEGIN 40 41 /// EPP LaunchDeleteCmd Class 42 class LaunchDeleteCmd 43 { 44 public: 45 // Default constructor LaunchDeleteCmd()46 LaunchDeleteCmd() 47 { 48 reset(); 49 } 50 51 /// Sets the phase of the launch 52 /** 53 * @param phase phase of the launch 54 */ set_phase(const LaunchPhase & phase)55 void set_phase(const LaunchPhase &phase) { _phase = phase; } 56 57 /// Returns the phase of the launch 58 /** 59 * @return phase of the launch 60 */ get_phase()61 LaunchPhase get_phase() const { return _phase; } 62 63 /// Sets the application identifier for which the client wishes to 64 /// delete 65 /** 66 * @param applicationId application identifier for which the client 67 * wishes to delete 68 */ set_applicationId(const string & applicationId)69 void set_applicationId(const string &applicationId) { _applicationId = applicationId; } 70 71 /// Returns the application identifier for which the client wishes 72 /// to delete 73 /** 74 * @return application identifier for which the client wishes to 75 * delete 76 */ get_applicationId()77 string get_applicationId() const { return _applicationId; } 78 79 /// Reset object attributes reset()80 void reset() 81 { 82 _phase.reset(); 83 _applicationId.clear(); 84 } 85 86 private: 87 /// Phase of the launch 88 LaunchPhase _phase; 89 90 /// Application identifier for which the client wishes to delete 91 string _applicationId; 92 }; 93 94 LIBEPP_NICBR_NS_END 95 96 #endif // __LAUNCH_DELETE_CMD_H__ 97