Class 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
    • Constructor Detail

      • PolicyName

        @Deprecated
        protected PolicyName()
        Deprecated.
    • Method Detail

      • getProject

        public String getProject()
      • getPolicy

        public String getPolicy()
      • getFolder

        public String getFolder()
      • getOrganization

        public String getOrganization()
      • newProjectPolicyBuilder

        @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
        public static PolicyName.Builder newProjectPolicyBuilder()
      • newFolderPolicyBuilder

        @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
        public static PolicyName.FolderPolicyBuilder newFolderPolicyBuilder()
      • newOrganizationPolicyBuilder

        @BetaApi("The per-pattern Builders are not stable yet and may be changed in the future.")
        public static PolicyName.OrganizationPolicyBuilder newOrganizationPolicyBuilder()
      • ofProjectPolicyName

        @BetaApi("The static create methods are not stable yet and may be changed in the future.")
        public static PolicyName ofProjectPolicyName​(String project,
                                                     String policy)
      • ofFolderPolicyName

        @BetaApi("The static create methods are not stable yet and may be changed in the future.")
        public static PolicyName ofFolderPolicyName​(String folder,
                                                    String policy)
      • ofOrganizationPolicyName

        @BetaApi("The static create methods are not stable yet and may be changed in the future.")
        public static PolicyName ofOrganizationPolicyName​(String organization,
                                                          String policy)
      • formatProjectPolicyName

        @BetaApi("The static format methods are not stable yet and may be changed in the future.")
        public static String formatProjectPolicyName​(String project,
                                                     String policy)
      • formatFolderPolicyName

        @BetaApi("The static format methods are not stable yet and may be changed in the future.")
        public static String formatFolderPolicyName​(String folder,
                                                    String policy)
      • formatOrganizationPolicyName

        @BetaApi("The static format methods are not stable yet and may be changed in the future.")
        public static String formatOrganizationPolicyName​(String organization,
                                                          String policy)
      • isParsableFrom

        public static boolean isParsableFrom​(String formattedString)
      • getFieldValuesMap

        public Map<String,​String> getFieldValuesMap()
        Specified by:
        getFieldValuesMap in interface com.google.api.resourcenames.ResourceName
      • getFieldValue

        public String getFieldValue​(String fieldName)
        Specified by:
        getFieldValue in interface com.google.api.resourcenames.ResourceName
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object