public final class Connection
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Build API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
Connection() |
Modifier and Type | Method and Description |
---|---|
Connection |
clone() |
Map<String,String> |
getAnnotations()
Optional.
|
BitbucketCloudConfig |
getBitbucketCloudConfig()
Configuration for connections to Bitbucket Cloud.
|
BitbucketDataCenterConfig |
getBitbucketDataCenterConfig()
Configuration for connections to Bitbucket Data Center.
|
String |
getCreateTime()
Output only.
|
Boolean |
getDisabled()
Optional.
|
String |
getEtag()
This checksum is computed by the server based on the value of other fields, and may be sent on
update and delete requests to ensure the client has an up-to-date value before proceeding.
|
GitHubConfig |
getGithubConfig()
Configuration for connections to github.com.
|
GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfig |
getGithubEnterpriseConfig()
Configuration for connections to an instance of GitHub Enterprise.
|
GoogleDevtoolsCloudbuildV2GitLabConfig |
getGitlabConfig()
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
|
InstallationState |
getInstallationState()
Output only.
|
String |
getName()
Immutable.
|
Boolean |
getReconciling()
Output only.
|
String |
getUpdateTime()
Output only.
|
Connection |
set(String fieldName,
Object value) |
Connection |
setAnnotations(Map<String,String> annotations)
Optional.
|
Connection |
setBitbucketCloudConfig(BitbucketCloudConfig bitbucketCloudConfig)
Configuration for connections to Bitbucket Cloud.
|
Connection |
setBitbucketDataCenterConfig(BitbucketDataCenterConfig bitbucketDataCenterConfig)
Configuration for connections to Bitbucket Data Center.
|
Connection |
setCreateTime(String createTime)
Output only.
|
Connection |
setDisabled(Boolean disabled)
Optional.
|
Connection |
setEtag(String etag)
This checksum is computed by the server based on the value of other fields, and may be sent on
update and delete requests to ensure the client has an up-to-date value before proceeding.
|
Connection |
setGithubConfig(GitHubConfig githubConfig)
Configuration for connections to github.com.
|
Connection |
setGithubEnterpriseConfig(GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfig githubEnterpriseConfig)
Configuration for connections to an instance of GitHub Enterprise.
|
Connection |
setGitlabConfig(GoogleDevtoolsCloudbuildV2GitLabConfig gitlabConfig)
Configuration for connections to gitlab.com or an instance of GitLab Enterprise.
|
Connection |
setInstallationState(InstallationState installationState)
Output only.
|
Connection |
setName(String name)
Immutable.
|
Connection |
setReconciling(Boolean reconciling)
Output only.
|
Connection |
setUpdateTime(String updateTime)
Output only.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public Map<String,String> getAnnotations()
null
for nonepublic Connection setAnnotations(Map<String,String> annotations)
annotations
- annotations or null
for nonepublic BitbucketCloudConfig getBitbucketCloudConfig()
null
for nonepublic Connection setBitbucketCloudConfig(BitbucketCloudConfig bitbucketCloudConfig)
bitbucketCloudConfig
- bitbucketCloudConfig or null
for nonepublic BitbucketDataCenterConfig getBitbucketDataCenterConfig()
null
for nonepublic Connection setBitbucketDataCenterConfig(BitbucketDataCenterConfig bitbucketDataCenterConfig)
bitbucketDataCenterConfig
- bitbucketDataCenterConfig or null
for nonepublic String getCreateTime()
null
for nonepublic Connection setCreateTime(String createTime)
createTime
- createTime or null
for nonepublic Boolean getDisabled()
null
for nonepublic Connection setDisabled(Boolean disabled)
disabled
- disabled or null
for nonepublic String getEtag()
null
for nonepublic Connection setEtag(String etag)
etag
- etag or null
for nonepublic GitHubConfig getGithubConfig()
null
for nonepublic Connection setGithubConfig(GitHubConfig githubConfig)
githubConfig
- githubConfig or null
for nonepublic GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfig getGithubEnterpriseConfig()
null
for nonepublic Connection setGithubEnterpriseConfig(GoogleDevtoolsCloudbuildV2GitHubEnterpriseConfig githubEnterpriseConfig)
githubEnterpriseConfig
- githubEnterpriseConfig or null
for nonepublic GoogleDevtoolsCloudbuildV2GitLabConfig getGitlabConfig()
null
for nonepublic Connection setGitlabConfig(GoogleDevtoolsCloudbuildV2GitLabConfig gitlabConfig)
gitlabConfig
- gitlabConfig or null
for nonepublic InstallationState getInstallationState()
null
for nonepublic Connection setInstallationState(InstallationState installationState)
installationState
- installationState or null
for nonepublic String getName()
null
for nonepublic Connection setName(String name)
name
- name or null
for nonepublic Boolean getReconciling()
null
for nonepublic Connection setReconciling(Boolean reconciling)
reconciling
- reconciling or null
for nonepublic String getUpdateTime()
null
for nonepublic Connection setUpdateTime(String updateTime)
updateTime
- updateTime or null
for nonepublic Connection set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Connection clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.