1333d3d1d216f56cb323589adedff6d6e55fa7d8
[netconf.git] / apps / netconf-topology-singleton / src / main / java / org / opendaylight / netconf / topology / singleton / messages / netconf / GetWithFieldsRequest.java
1 /*
2  * Copyright © 2020 FRINX s.r.o. All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.netconf.topology.singleton.messages.netconf;
9
10 import com.google.common.collect.ImmutableList;
11 import java.util.List;
12 import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
13
14 public class GetWithFieldsRequest extends GetRequest {
15     private static final long serialVersionUID = 1L;
16
17     private final List<YangInstanceIdentifier> fields;
18
19     public GetWithFieldsRequest(final YangInstanceIdentifier path, final List<YangInstanceIdentifier> fields) {
20         super(path);
21         this.fields = ImmutableList.copyOf(fields);
22     }
23
24     public List<YangInstanceIdentifier> getFields() {
25         return fields;
26     }
27 }