public static class SecurityPolicy.Builder extends Object
Modifier and Type | Method and Description |
---|---|
SecurityPolicy.Builder |
addAllRules(List<SecurityPolicyRule> rules)
A list of rules that belong to this policy.
|
SecurityPolicy.Builder |
addRules(SecurityPolicyRule rules)
A list of rules that belong to this policy.
|
SecurityPolicy |
build() |
SecurityPolicy.Builder |
clone() |
String |
getCreationTimestamp()
[Output Only] Creation timestamp in RFC3339 text format.
|
String |
getDescription()
An optional description of this resource.
|
String |
getFingerprint()
Specifies a fingerprint for this resource, which is essentially a hash of the metadata's
contents and used for optimistic locking.
|
String |
getId()
[Output Only] The unique identifier for the resource.
|
String |
getKind()
[Output only] Type of the resource.
|
String |
getName()
Name of the resource.
|
List<SecurityPolicyRule> |
getRulesList()
A list of rules that belong to this policy.
|
String |
getSelfLink()
[Output Only] Server-defined URL for the resource.
|
SecurityPolicy.Builder |
mergeFrom(SecurityPolicy other) |
SecurityPolicy.Builder |
setCreationTimestamp(String creationTimestamp)
[Output Only] Creation timestamp in RFC3339 text format.
|
SecurityPolicy.Builder |
setDescription(String description)
An optional description of this resource.
|
SecurityPolicy.Builder |
setFingerprint(String fingerprint)
Specifies a fingerprint for this resource, which is essentially a hash of the metadata's
contents and used for optimistic locking.
|
SecurityPolicy.Builder |
setId(String id)
[Output Only] The unique identifier for the resource.
|
SecurityPolicy.Builder |
setKind(String kind)
[Output only] Type of the resource.
|
SecurityPolicy.Builder |
setName(String name)
Name of the resource.
|
SecurityPolicy.Builder |
setSelfLink(String selfLink)
[Output Only] Server-defined URL for the resource.
|
public SecurityPolicy.Builder mergeFrom(SecurityPolicy other)
public String getCreationTimestamp()
public SecurityPolicy.Builder setCreationTimestamp(String creationTimestamp)
public String getDescription()
public SecurityPolicy.Builder setDescription(String description)
public String getFingerprint()
To see the latest fingerprint, make get() request to the security policy.
public SecurityPolicy.Builder setFingerprint(String fingerprint)
To see the latest fingerprint, make get() request to the security policy.
public String getId()
public SecurityPolicy.Builder setId(String id)
public String getKind()
public SecurityPolicy.Builder setKind(String kind)
public String getName()
public SecurityPolicy.Builder setName(String name)
public List<SecurityPolicyRule> getRulesList()
public SecurityPolicy.Builder addAllRules(List<SecurityPolicyRule> rules)
public SecurityPolicy.Builder addRules(SecurityPolicyRule rules)
public String getSelfLink()
public SecurityPolicy.Builder setSelfLink(String selfLink)
public SecurityPolicy build()
public SecurityPolicy.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.