Package com.google.monitoring.v3
Class AlertPolicyName
- java.lang.Object
-
- com.google.monitoring.v3.AlertPolicyName
-
- All Implemented Interfaces:
com.google.api.resourcenames.ResourceName
@Generated("by gapic-generator-java") public class AlertPolicyName extends Object implements com.google.api.resourcenames.ResourceName
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AlertPolicyName.Builder
Builder for projects/{project}/alertPolicies/{alert_policy}.static class
AlertPolicyName.FolderAlertPolicyBuilder
Builder for folders/{folder}/alertPolicies/{alert_policy}.static class
AlertPolicyName.OrganizationAlertPolicyBuilder
Builder for organizations/{organization}/alertPolicies/{alert_policy}.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AlertPolicyName()
Deprecated.
-
Method Summary
-
-
-
Constructor Detail
-
AlertPolicyName
@Deprecated protected AlertPolicyName()
Deprecated.
-
-
Method Detail
-
getProject
public String getProject()
-
getAlertPolicy
public String getAlertPolicy()
-
getOrganization
public String getOrganization()
-
getFolder
public String getFolder()
-
newBuilder
public static AlertPolicyName.Builder newBuilder()
-
newProjectAlertPolicyBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static AlertPolicyName.Builder newProjectAlertPolicyBuilder()
-
newOrganizationAlertPolicyBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static AlertPolicyName.OrganizationAlertPolicyBuilder newOrganizationAlertPolicyBuilder()
-
newFolderAlertPolicyBuilder
@BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.") public static AlertPolicyName.FolderAlertPolicyBuilder newFolderAlertPolicyBuilder()
-
toBuilder
public AlertPolicyName.Builder toBuilder()
-
of
public static AlertPolicyName of(String project, String alertPolicy)
-
ofProjectAlertPolicyName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static AlertPolicyName ofProjectAlertPolicyName(String project, String alertPolicy)
-
ofOrganizationAlertPolicyName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static AlertPolicyName ofOrganizationAlertPolicyName(String organization, String alertPolicy)
-
ofFolderAlertPolicyName
@BetaApi("The static create methods are not stable yet and may be changed in the future.") public static AlertPolicyName ofFolderAlertPolicyName(String folder, String alertPolicy)
-
formatProjectAlertPolicyName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatProjectAlertPolicyName(String project, String alertPolicy)
-
formatOrganizationAlertPolicyName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatOrganizationAlertPolicyName(String organization, String alertPolicy)
-
formatFolderAlertPolicyName
@BetaApi("The static format methods are not stable yet and may be changed in the future.") public static String formatFolderAlertPolicyName(String folder, String alertPolicy)
-
parse
public static AlertPolicyName parse(String formattedString)
-
parseList
public static List<AlertPolicyName> parseList(List<String> formattedStrings)
-
toStringList
public static List<String> toStringList(List<AlertPolicyName> 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
-
-