package com.airlock.iam.apipolicyservice.domain.model;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Optional;

public class ResolveTechClientResult {
   private Optional<ResolveTechClientError> error;
   private Optional<ApiPolicyServiceTechClientView> techClient;

   public ResolveTechClientResult(ResolveTechClientError error) {
      this.error = Optional.of(error);
      this.techClient = Optional.empty();
   }

   public ResolveTechClientResult(ApiPolicyServiceTechClientView techClient) {
      this.techClient = Optional.of(techClient);
      this.error = Optional.empty();
   }

   @SuppressFBWarnings(justification = "generated code")
   public Optional<ResolveTechClientError> getError() {
      return this.error;
   }

   @SuppressFBWarnings(justification = "generated code")
   public Optional<ApiPolicyServiceTechClientView> getTechClient() {
      return this.techClient;
   }
}
