X-Git-Url: https://gerrit.onap.org/r/gitweb?p=policy%2Fengine.git;a=blobdiff_plain;f=PolicyEngineAPI%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fapi%2FConfigNameRequest.java;fp=ONAP-PDP-REST%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fpolicy%2Fpdp%2Frest%2Fapi%2Fmodels%2FConfigNameRequest.java;h=1a64757ca767f6f6f66c94763fe77f2ad9503737;hp=9454459917b6f588a3f7523ce55daaf5af51627a;hb=e2111a6738792f7fa83bc07749fa94d3b2bc4dbb;hpb=1aeb1d9da9b06a38e6b9760085cb0fc51b8faf18 diff --git a/ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/api/models/ConfigNameRequest.java b/PolicyEngineAPI/src/main/java/org/onap/policy/api/ConfigNameRequest.java similarity index 74% rename from ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/api/models/ConfigNameRequest.java rename to PolicyEngineAPI/src/main/java/org/onap/policy/api/ConfigNameRequest.java index 945445991..1a64757ca 100644 --- a/ONAP-PDP-REST/src/main/java/org/onap/policy/pdp/rest/api/models/ConfigNameRequest.java +++ b/PolicyEngineAPI/src/main/java/org/onap/policy/api/ConfigNameRequest.java @@ -2,14 +2,14 @@ * ============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. @@ -17,23 +17,32 @@ * 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); + } }