Class DeploymentSpec.DeclaredZone

java.lang.Object
com.yahoo.config.application.api.DeploymentSpec.Step
com.yahoo.config.application.api.DeploymentSpec.DeclaredZone
Enclosing class:
DeploymentSpec

public static class DeploymentSpec.DeclaredZone extends DeploymentSpec.Step
A deployment step which is to run deployment in a particular zone
  • Constructor Details

    • DeclaredZone

      public DeclaredZone(com.yahoo.config.provision.Environment environment)
    • DeclaredZone

      public DeclaredZone(com.yahoo.config.provision.Environment environment, Optional<com.yahoo.config.provision.RegionName> region, boolean active, Optional<com.yahoo.config.provision.AthenzService> athenzService, Optional<String> testerFlavor, Optional<com.yahoo.config.provision.CloudAccount> cloudAccount)
  • Method Details

    • environment

      public com.yahoo.config.provision.Environment environment()
    • region

      public Optional<com.yahoo.config.provision.RegionName> region()
      The region name, or empty if not declared
    • active

      public boolean active()
      Returns whether this zone should receive production traffic
    • testerFlavor

      public Optional<String> testerFlavor()
    • athenzService

      public Optional<com.yahoo.config.provision.AthenzService> athenzService()
    • cloudAccount

      public Optional<com.yahoo.config.provision.CloudAccount> cloudAccount()
    • zones

      Description copied from class: DeploymentSpec.Step
      Returns the zones deployed to in this step.
      Overrides:
      zones in class DeploymentSpec.Step
    • concerns

      public boolean concerns(com.yahoo.config.provision.Environment environment, Optional<com.yahoo.config.provision.RegionName> region)
      Description copied from class: DeploymentSpec.Step
      Returns whether this step specifies the given environment, and, optionally, if this step specifies a region, whether this is also the given region.
      Specified by:
      concerns in class DeploymentSpec.Step
    • isTest

      public boolean isTest()
      Description copied from class: DeploymentSpec.Step
      Returns whether this step is a test step.
      Overrides:
      isTest in class DeploymentSpec.Step
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object