* ============LICENSE_START=======================================================
* ONAP-PDP-REST
* ================================================================================
- * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2017-2019 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* limitations under the License.
* ============LICENSE_END=========================================================
*/
-package org.onap.policy.pdp.rest.api.models;
-import io.swagger.annotations.ApiModel;
+package org.onap.policy.api;
+import com.google.gson.Gson;
import java.io.Serializable;
-@ApiModel
-public class ConfigNameRequest implements Serializable{
+public class ConfigNameRequest implements Serializable {
private static final long serialVersionUID = 4487978240532425305L;
-
+
private String policyName = null;
-
+
public void setPolicyName(String policyName) {
this.policyName = policyName;
}
-
+
public String getPolicyName() {
return policyName;
}
+
+ /**
+ * Used to print the input Params for getCOnfig REST call.
+ *
+ * @return JSON String of this object.
+ */
+ @Override
+ public String toString() {
+ return new Gson().toJson(this);
+ }
}