content: /*
   * Copyright 2017-2025 Hyland Software, Inc. and its affiliates.
   *
   * 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.
   */
  package org.activiti.cloud.services.notifications.graphql.subscriptions;
  
  import jakarta.validation.constraints.NotBlank;
  import jakarta.validation.constraints.NotNull;
  import org.springframework.boot.context.properties.ConfigurationProperties;
  import org.springframework.validation.annotation.Validated;
  
  @Validated
  @ConfigurationProperties(prefix = "org.activiti.cloud.services.notifications.graphql.subscriptions")
  public class GraphQLSubscriptionSchemaProperties {
  
      /**
       * The URL of GraphQL subscription schema file name with .graphqls extension. Defaults to classpath:activiti.graphqls
       */
      @NotBlank
      private String graphqls;
  
      /**
       * GraphQL subscription schema field name. Defaults to ProcessEngineNotification
       */
      @NotBlank
      private String subscriptionFieldName;
  
      /**
       * GraphQL subscription field comma-separated list of argument names to build hierarchical Stomp destination subscription topic.
       * Defaults to serviceName,appName,processDefinitionId,processInstanceId
       */
      @NotNull
      private String[] subscriptionArgumentNames;
  
      @NotBlank
      private String relayHost;
  
      @NotNull
      private Integer relayPort;
  
      @NotBlank
      private String clientLogin;
  
      @NotBlank
      private String clientPasscode;
  
      public String getGraphqls() {
          return graphqls;
      }
  
      public void setGraphqls(String graphqls) {
          this.graphqls = graphqls;
      }
  
      public String getSubscriptionFieldName() {
          return subscriptionFieldName;
      }
  
      public void setSubscriptionFieldName(String subscriptionFieldName) {
          this.subscriptionFieldName = subscriptionFieldName;
      }
  
      public String[] getSubscriptionArgumentNames() {
          return subscriptionArgumentNames;
      }
  
      public void setSubscriptionArgumentNames(String[] argumentNames) {
          this.subscriptionArgumentNames = argumentNames;
      }
  
      public String getRelayHost() {
          return relayHost;
      }
  
      public void setRelayHost(String relayHost) {
          this.relayHost = relayHost;
      }
  
      public int getRelayPort() {
          return relayPort;
      }
  
      public void setRelayPort(int relayPort) {
          this.relayPort = relayPort;
      }
  
      public String getClientLogin() {
          return clientLogin;
      }
  
      public void setClientLogin(String relayLogin) {
          this.clientLogin = relayLogin;
      }
  
      public String getClientPasscode() {
          return clientPasscode;
      }
  
      public void setClientPasscode(String relayPasscode) {
          this.clientPasscode = relayPasscode;
      }
  }
  