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 classPolicyName.BuilderBuilder for projects/{project}/policy.static classPolicyName.LocationBuilderBuilder for locations/{location}/policy.
-
Constructor Summary
Constructors Modifier Constructor Description protectedPolicyName()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static Stringformat(String project)static StringformatLocationName(String location)static StringformatProjectName(String project)StringgetFieldValue(String fieldName)Map<String,String>getFieldValuesMap()StringgetLocation()StringgetProject()inthashCode()static booleanisParsableFrom(String formattedString)static PolicyName.BuildernewBuilder()static PolicyName.LocationBuildernewLocationBuilder()static PolicyName.BuildernewProjectBuilder()static PolicyNameof(String project)static PolicyNameofLocationName(String location)static PolicyNameofProjectName(String project)static PolicyNameparse(String formattedString)static List<PolicyName>parseList(List<String> formattedStrings)PolicyName.BuildertoBuilder()StringtoString()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:
getFieldValuesMapin interfacecom.google.api.resourcenames.ResourceName
-
getFieldValue
public String getFieldValue(String fieldName)
- Specified by:
getFieldValuein interfacecom.google.api.resourcenames.ResourceName
-
-