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

target.apidocs.com.google.api.services.gmail.Gmail.Users.Settings.ForwardingAddresses.html Maven / Gradle / Ivy

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






Gmail.Users.Settings.ForwardingAddresses (Gmail API v1-rev20240422-2.0.0)












com.google.api.services.gmail

Class Gmail.Users.Settings.ForwardingAddresses

  • java.lang.Object
    • com.google.api.services.gmail.Gmail.Users.Settings.ForwardingAddresses
  • Enclosing class:
    Gmail.Users.Settings


    public class Gmail.Users.Settings.ForwardingAddresses
    extends Object
    The "forwardingAddresses" collection of methods.
    • Constructor Detail

      • ForwardingAddresses

        public ForwardingAddresses()
    • Method Detail

      • create

        public Gmail.Users.Settings.ForwardingAddresses.Create create(String userId,
                                                                      ForwardingAddress content)
                                                               throws IOException
        Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to `pending`; otherwise, the resource will be created with verification status set to `accepted`. This method is only available to service account clients that have been delegated domain-wide authority. Create a request for the method "forwardingAddresses.create". This request holds the parameters needed by the gmail server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        userId - User's email address. The special value "me" can be used to indicate the authenticated user. [default: me]
        content - the ForwardingAddress
        Returns:
        the request
        Throws:
        IOException
      • delete

        public Gmail.Users.Settings.ForwardingAddresses.Delete delete(String userId,
                                                                      String forwardingEmail)
                                                               throws IOException
        Deletes the specified forwarding address and revokes any verification that may have been required. This method is only available to service account clients that have been delegated domain-wide authority. Create a request for the method "forwardingAddresses.delete". This request holds the parameters needed by the gmail server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        userId - User's email address. The special value "me" can be used to indicate the authenticated user. [default: me]
        forwardingEmail - The forwarding address to be deleted.
        Returns:
        the request
        Throws:
        IOException
      • get

        public Gmail.Users.Settings.ForwardingAddresses.Get get(String userId,
                                                                String forwardingEmail)
                                                         throws IOException
        Gets the specified forwarding address. Create a request for the method "forwardingAddresses.get". This request holds the parameters needed by the gmail server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        userId - User's email address. The special value "me" can be used to indicate the authenticated user. [default: me]
        forwardingEmail - The forwarding address to be retrieved.
        Returns:
        the request
        Throws:
        IOException
      • list

        public Gmail.Users.Settings.ForwardingAddresses.List list(String userId)
                                                           throws IOException
        Lists the forwarding addresses for the specified account. Create a request for the method "forwardingAddresses.list". This request holds the parameters needed by the gmail server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.
        Parameters:
        userId - User's email address. The special value "me" can be used to indicate the authenticated user. [default: me]
        Returns:
        the request
        Throws:
        IOException

Copyright © 2011–2024 Google. All rights reserved.





© 2015 - 2024 Weber Informatics LLC | Privacy Policy