public class AclPolicy extends Object
Constructor and Description |
---|
AclPolicy() |
AclPolicy(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
AclPolicy |
addDatacenter(String datacenter)
Adds a datacenter, like
setDatacenters(List) |
List<String> |
getDatacenters() |
String |
getDescription() |
String |
getId() |
String |
getName() |
String |
getNamespace() |
String |
getRules() |
AclPolicy |
setDatacenters(List<String> datacenters)
Sets an optional datacenters.
|
AclPolicy |
setDescription(String description)
Sets an optional free-form description that is human-readable.
|
AclPolicy |
setName(String name)
Sets a name.
|
AclPolicy |
setNamespace(String namespace)
Sets an optional namespace.
|
AclPolicy |
setRules(String rules)
Sets a rules.
|
JsonObject |
toJson() |
public AclPolicy()
public AclPolicy(JsonObject json)
public String getName()
public String getDescription()
public String getRules()
public String getNamespace()
public String getId()
public JsonObject toJson()
public AclPolicy setName(String name)
name
- can contain alphanumeric characters, dashes -, and underscores _name
public AclPolicy setDescription(String description)
description
- description
public AclPolicy setRules(String rules)
rules
- rules in specified formatrules
,
ACL Rules documentationpublic AclPolicy setDatacenters(List<String> datacenters)
datacenters
- list of datacentersdatacenters
public AclPolicy addDatacenter(String datacenter)
setDatacenters(List)
datacenters
Copyright © 2024 Eclipse. All rights reserved.