Class TriggerSourcePropertiesPrototype
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.continuous_delivery.cd_tekton_pipeline.v2.model.TriggerSourcePropertiesPrototype
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class TriggerSourcePropertiesPrototype extends com.ibm.cloud.sdk.core.service.model.GenericModelProperties of the source, which define the URL of the repository and a branch or pattern.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTriggerSourcePropertiesPrototype.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringbranch()Gets the branch.TriggerSourcePropertiesPrototype.BuildernewBuilder()New builder.java.lang.Stringpattern()Gets the pattern.java.lang.Stringurl()Gets the url.
-
-
-
Method Detail
-
newBuilder
public TriggerSourcePropertiesPrototype.Builder newBuilder()
New builder.- Returns:
- a TriggerSourcePropertiesPrototype builder
-
url
public java.lang.String url()
Gets the url. URL of the repository to which the trigger is listening.- Returns:
- the url
-
branch
public java.lang.String branch()
Gets the branch. Name of a branch from the repo. One of branch or pattern must be specified, but only one or the other.- Returns:
- the branch
-
pattern
public java.lang.String pattern()
Gets the pattern. The pattern of Git branch or tag to which to listen. You can specify a glob pattern such as '!test' or '*master' to match against multiple tags/branches in the repository. The glob pattern used must conform to Bash 4.3 specifications, see bash documentation for more info: https://www.gnu.org/software/bash/manual/bash.html#Pattern-Matching. One of branch or pattern must be specified, but only one or the other.- Returns:
- the pattern
-
-