Tabnine Logo
ConfigProblemBuilder.setOptions
Code IndexAdd Tabnine to your IDE (free)

How to use
setOptions
method
in
com.netflix.spinnaker.halyard.config.problem.v1.ConfigProblemBuilder

Best Java code snippets using com.netflix.spinnaker.halyard.config.problem.v1.ConfigProblemBuilder.setOptions (Showing top 6 results out of 315)

origin: com.netflix.spinnaker.halyard/halyard-config

public ConfigProblemBuilder addProblem(Severity severity, String message, String field) {
 ConfigProblemBuilder problemBuilder = new ConfigProblemBuilder(severity, message);
 if (node != null) {
  problemBuilder.setNode(node);
  if (field != null && !field.isEmpty()) {
   problemBuilder.setOptions(node.fieldOptions(new ConfigProblemSetBuilder(context), field));
  }
 }
 builders.add(problemBuilder);
 return problemBuilder;
}
origin: spinnaker/halyard

public ConfigProblemBuilder addProblem(Severity severity, String message, String field) {
 ConfigProblemBuilder problemBuilder = new ConfigProblemBuilder(severity, message);
 if (node != null) {
  problemBuilder.setNode(node);
  if (field != null && !field.isEmpty()) {
   problemBuilder.setOptions(node.fieldOptions(new ConfigProblemSetBuilder(context), field));
  }
 }
 builders.add(problemBuilder);
 return problemBuilder;
}
origin: com.netflix.spinnaker.halyard/halyard-config

public ConfigProblemSetBuilder extend(HalException e) {
 e.getProblems()
   .getProblems()
   .forEach(p -> addProblem(p.getSeverity(), p.getMessage())
     .setOptions(p.getOptions())
     .setRemediation(p.getRemediation())
   );
 return this;
}
origin: spinnaker/halyard

public ConfigProblemSetBuilder extend(HalException e) {
 e.getProblems()
   .getProblems()
   .forEach(p -> addProblem(p.getSeverity(), p.getMessage())
     .setOptions(p.getOptions())
     .setRemediation(p.getRemediation())
   );
 return this;
}
origin: com.netflix.spinnaker.halyard/halyard-config

accountClusters.forEach(c -> problems.addProblem(ERROR, "Cluster \"" + c.toString() + "\" not defined for provider")
  .setRemediation("Add cluster to the provider or remove from the account")
  .setOptions(Lists.newArrayList(definedClusters)));
origin: spinnaker/halyard

accountClusters.forEach(c -> problems.addProblem(ERROR, "Cluster \"" + c.toString() + "\" not defined for provider")
  .setRemediation("Add cluster to the provider or remove from the account")
  .setOptions(Lists.newArrayList(definedClusters)));
com.netflix.spinnaker.halyard.config.problem.v1ConfigProblemBuildersetOptions

Popular methods of ConfigProblemBuilder

  • <init>
  • build
  • setNode
  • setRemediation

Popular in Java

  • Updating database using SQL prepared statement
  • scheduleAtFixedRate (Timer)
  • setContentView (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Collectors (java.util.stream)
  • JLabel (javax.swing)
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now