7964aa1999dc2d4cf338560da98d19b86d9a4645
[policy/distribution.git] /
1 /*-
2  * ============LICENSE_START=======================================================
3  *  Copyright (C) 2018 Intel. All rights reserved.
4  *  Modifications Copyright (C) 2019-2021 Nordix Foundation.
5  * ================================================================================
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  *      http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  * SPDX-License-Identifier: Apache-2.0
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.policy.distribution.reception.handling.sdc;
23
24 import java.util.List;
25 import lombok.Getter;
26 import org.onap.policy.common.parameters.annotations.NotBlank;
27 import org.onap.policy.common.parameters.annotations.NotNull;
28 import org.onap.policy.distribution.reception.parameters.ReceptionHandlerConfigurationParameterGroup;
29
30 /**
31  * This class handles reading, parsing and validating of the Policy SDC Service Distribution parameters from Json
32  * format, which strictly adheres to the interface:IConfiguration, defined by SDC SDK.
33  */
34 @Getter
35 public class SdcReceptionHandlerConfigurationParameterGroup extends ReceptionHandlerConfigurationParameterGroup {
36     private @NotNull @NotBlank String asdcAddress;
37     private @NotNull @NotBlank List<String> messageBusAddress;
38     private @NotNull @NotBlank String user;
39     private @NotNull @NotBlank String password;
40     private @NotNull @NotBlank int pollingInterval;
41     private @NotNull @NotBlank int pollingTimeout;
42     private @NotNull @NotBlank int retryDelay;
43     private @NotNull @NotBlank String consumerId;
44     private @NotNull @NotBlank List<String> artifactTypes;
45     private @NotNull @NotBlank String consumerGroup;
46     private @NotNull @NotBlank String environmentName;
47     private String keyStorePath;
48     private String keyStorePassword;
49     private boolean activeServerTlsAuth;
50     private boolean isFilterInEmptyResources;
51     private boolean isUseHttpsWithDmaap;
52
53     public SdcReceptionHandlerConfigurationParameterGroup() {
54         super(SdcReceptionHandlerConfigurationParameterGroup.class.getSimpleName());
55     }
56 }