All Downloads are FREE. Search and download functionalities are using the official Maven repository.

target.apidocs.com.google.api.services.compute.model.FirewallPolicy.html Maven / Gradle / Ivy

There is a newer version: v1-rev20250107-2.0.0
Show newest version






FirewallPolicy (Compute Engine API alpha-rev20200526-1.30.9)












com.google.api.services.compute.model

Class FirewallPolicy

    • Constructor Detail

      • FirewallPolicy

        public FirewallPolicy()
    • Method Detail

      • getAssociations

        public List<FirewallPolicyAssociation> getAssociations()
        A list of associations that belong to this firewall policy.
        Returns:
        value or null for none
      • setAssociations

        public FirewallPolicy setAssociations(List<FirewallPolicyAssociation> associations)
        A list of associations that belong to this firewall policy.
        Parameters:
        associations - associations or null for none
      • getCreationTimestamp

        public String getCreationTimestamp()
        [Output Only] Creation timestamp in RFC3339 text format.
        Returns:
        value or null for none
      • setCreationTimestamp

        public FirewallPolicy setCreationTimestamp(String creationTimestamp)
        [Output Only] Creation timestamp in RFC3339 text format.
        Parameters:
        creationTimestamp - creationTimestamp or null for none
      • getDescription

        public String getDescription()
        An optional description of this resource. Provide this property when you create the resource.
        Returns:
        value or null for none
      • setDescription

        public FirewallPolicy setDescription(String description)
        An optional description of this resource. Provide this property when you create the resource.
        Parameters:
        description - description or null for none
      • getDisplayName

        public String getDisplayName()
        User-provided name of the Organization firewall plicy. The name should be unique in the organization in which the firewall policy is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
        Returns:
        value or null for none
      • setDisplayName

        public FirewallPolicy setDisplayName(String displayName)
        User-provided name of the Organization firewall plicy. The name should be unique in the organization in which the firewall policy is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.
        Parameters:
        displayName - displayName or null for none
      • getFingerprint

        public String getFingerprint()
        Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy.
        Returns:
        value or null for none
        See Also:
        decodeFingerprint()
      • decodeFingerprint

        public byte[] decodeFingerprint()
        Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy.
        Returns:
        Base64 decoded value or null for none
        Since:
        1.14
        See Also:
        getFingerprint()
      • setFingerprint

        public FirewallPolicy setFingerprint(String fingerprint)
        Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy.
        Parameters:
        fingerprint - fingerprint or null for none
        See Also:
        #encodeFingerprint()
      • encodeFingerprint

        public FirewallPolicy encodeFingerprint(byte[] fingerprint)
        Specifies a fingerprint for this resource, which is essentially a hash of the metadata's contents and used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update metadata. You must always provide an up-to-date fingerprint hash in order to update or change metadata, otherwise the request will fail with error 412 conditionNotMet. To see the latest fingerprint, make get() request to the firewall policy.
        Since:
        1.14
        See Also:

        The value is encoded Base64 or {@code null} for none.

      • getId

        public BigInteger getId()
        [Output Only] The unique identifier for the resource. This identifier is defined by the server.
        Returns:
        value or null for none
      • setId

        public FirewallPolicy setId(BigInteger id)
        [Output Only] The unique identifier for the resource. This identifier is defined by the server.
        Parameters:
        id - id or null for none
      • getKind

        public String getKind()
        [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies
        Returns:
        value or null for none
      • setKind

        public FirewallPolicy setKind(String kind)
        [Output only] Type of the resource. Always compute#firewallPolicyfor firewall policies
        Parameters:
        kind - kind or null for none
      • getName

        public String getName()
        [Output Only] Name of the resource. It is a numeric ID allocated by GCP which uniquely identifies the Firewall Policy.
        Returns:
        value or null for none
      • setName

        public FirewallPolicy setName(String name)
        [Output Only] Name of the resource. It is a numeric ID allocated by GCP which uniquely identifies the Firewall Policy.
        Parameters:
        name - name or null for none
      • getParent

        public String getParent()
        [Output Only] The parent of the firewall policy.
        Returns:
        value or null for none
      • setParent

        public FirewallPolicy setParent(String parent)
        [Output Only] The parent of the firewall policy.
        Parameters:
        parent - parent or null for none
      • getRuleTupleCount

        public Integer getRuleTupleCount()
        [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples.
        Returns:
        value or null for none
      • setRuleTupleCount

        public FirewallPolicy setRuleTupleCount(Integer ruleTupleCount)
        [Output Only] Total count of all firewall policy rule tuples. A firewall policy can not exceed a set number of tuples.
        Parameters:
        ruleTupleCount - ruleTupleCount or null for none
      • getRules

        public List<FirewallPolicyRule> getRules()
        A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added.
        Returns:
        value or null for none
      • setRules

        public FirewallPolicy setRules(List<FirewallPolicyRule> rules)
        A list of rules that belong to this policy. There must always be a default rule (rule with priority 2147483647 and match "*"). If no rules are provided when creating a firewall policy, a default rule with action "allow" will be added.
        Parameters:
        rules - rules or null for none
      • getSelfLink

        public String getSelfLink()
        [Output Only] Server-defined URL for the resource.
        Returns:
        value or null for none
      • setSelfLink

        public FirewallPolicy setSelfLink(String selfLink)
        [Output Only] Server-defined URL for the resource.
        Parameters:
        selfLink - selfLink or null for none
      • getSelfLinkWithId

        public String getSelfLinkWithId()
        [Output Only] Server-defined URL for this resource with the resource id.
        Returns:
        value or null for none
      • setSelfLinkWithId

        public FirewallPolicy setSelfLinkWithId(String selfLinkWithId)
        [Output Only] Server-defined URL for this resource with the resource id.
        Parameters:
        selfLinkWithId - selfLinkWithId or null for none

Copyright © 2011–2020 Google. All rights reserved.





© 2015 - 2025 Weber Informatics LLC | Privacy Policy