/*-
 * ============LICENSE_START=======================================================
 * OSAM
 * ================================================================================
 * Copyright (C) 2018 AT&T
 * ================================================================================
 * 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.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ============LICENSE_END=========================================================
 */



package org.onap.osam.model;

public class NetworkCollectionProperties {
    private String networkCollectionFunction;
    private String networkCollectionDescription;

    public String getNetworkCollectionFunction() {
        return networkCollectionFunction;
    }

    public void setNetworkCollectionFunction(String networkCollectionFunction) {
        this.networkCollectionFunction = networkCollectionFunction;
    }

    public String getNetworkCollectionDescription() {
        return networkCollectionDescription;
    }

    public void setNetworkCollectionDescription(String networkCollectionDescription) {
        this.networkCollectionDescription = networkCollectionDescription;
    }
}
