Class PolicyName
- java.lang.Object
-
- com.google.cloud.binaryauthorization.v1beta1.PolicyName
-
- All Implemented Interfaces:
com.google.api.resourcenames.ResourceName
@Generated("by gapic-generator-java") public class PolicyName extends Object implements com.google.api.resourcenames.ResourceName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PolicyName.Builder
Builder for projects/{project}/policy.static class
PolicyName.LocationBuilder
Builder for locations/{location}/policy.
-
Constructor Summary
Constructors Modifier Constructor Description protected
PolicyName()
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static String
format(String project)
static String
formatLocationName(String location)
static String
formatProjectName(String project)
String
getFieldValue(String fieldName)
Map<String,String>
getFieldValuesMap()
String
getLocation()
String
getProject()
int
hashCode()
static boolean
isParsableFrom(String formattedString)
static PolicyName.Builder
newBuilder()
static PolicyName.LocationBuilder
newLocationBuilder()
static PolicyName.Builder
newProjectBuilder()
static PolicyName
of(String project)
static PolicyName
ofLocationName(String location)
static PolicyName
ofProjectName(String project)
static PolicyName
parse(String formattedString)
static List<PolicyName>
parseList(List<String> formattedStrings)
PolicyName.Builder
toBuilder()
String
toString()
static List<String>
toStringList(List<PolicyName> values)
-
-
-
Constructor Detail
-
PolicyName
@Deprecated protected PolicyName()
Deprecated.
-
-
Method Detail
-
getProject
public String getProject()
-
getLocation
public String getLocation()
-
newBuilder
public static PolicyName.Builder newBuilder()
-
newProjectBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static PolicyName.Builder newProjectBuilder()
-
newLocationBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static PolicyName.LocationBuilder newLocationBuilder()
-
toBuilder
public PolicyName.Builder toBuilder()
-
of
public static PolicyName of(String project)
-
ofProjectName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static PolicyName ofProjectName(String project)
-
ofLocationName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static PolicyName ofLocationName(String location)
-
formatProjectName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectName(String project)
-
formatLocationName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatLocationName(String location)
-
parse
public static PolicyName parse(String formattedString)
-
parseList
public static List<PolicyName> parseList(List<String> formattedStrings)
-
toStringList
public static List<String> toStringList(List<PolicyName> values)
-
isParsableFrom
public static boolean isParsableFrom(String formattedString)
-
getFieldValuesMap
public Map<String,String> getFieldValuesMap()
- Specified by:
getFieldValuesMap
in interfacecom.google.api.resourcenames.ResourceName
-
getFieldValue
public String getFieldValue(String fieldName)
- Specified by:
getFieldValue
in interfacecom.google.api.resourcenames.ResourceName
-
-