Package com.google.cloud.osconfig.v1
Class InstanceName
- java.lang.Object
-
- com.google.cloud.osconfig.v1.InstanceName
-
- All Implemented Interfaces:
com.google.api.resourcenames.ResourceName
@Generated("by gapic-generator-java") public class InstanceName extends Object implements com.google.api.resourcenames.ResourceName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InstanceName.Builder
Builder for projects/{project}/zones/{zone}/instances/{instance}.static class
InstanceName.ProjectLocationInstanceBuilder
Builder for projects/{project}/locations/{location}/instances/{instance}.
-
Constructor Summary
Constructors Modifier Constructor Description protected
InstanceName()
Deprecated.
-
Method Summary
-
-
-
Constructor Detail
-
InstanceName
@Deprecated protected InstanceName()
Deprecated.
-
-
Method Detail
-
getProject
public String getProject()
-
getZone
public String getZone()
-
getInstance
public String getInstance()
-
getLocation
public String getLocation()
-
newBuilder
public static InstanceName.Builder newBuilder()
-
newProjectZoneInstanceBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static InstanceName.Builder newProjectZoneInstanceBuilder()
-
newProjectLocationInstanceBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static InstanceName.ProjectLocationInstanceBuilder newProjectLocationInstanceBuilder()
-
toBuilder
public InstanceName.Builder toBuilder()
-
of
public static InstanceName of(String project, String zone, String instance)
-
ofProjectZoneInstanceName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static InstanceName ofProjectZoneInstanceName(String project, String zone, String instance)
-
ofProjectLocationInstanceName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static InstanceName ofProjectLocationInstanceName(String project, String location, String instance)
-
formatProjectZoneInstanceName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectZoneInstanceName(String project, String zone, String instance)
-
formatProjectLocationInstanceName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectLocationInstanceName(String project, String location, String instance)
-
parse
public static InstanceName parse(String formattedString)
-
parseList
public static List<InstanceName> parseList(List<String> formattedStrings)
-
toStringList
public static List<String> toStringList(List<InstanceName> 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
-
-