target.apidocs.com.google.api.services.gmail.Gmail.Users.Settings.ForwardingAddresses.html Maven / Gradle / Ivy
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.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Gmail.Users.Settings.ForwardingAddresses.Create
class
Gmail.Users.Settings.ForwardingAddresses.Delete
class
Gmail.Users.Settings.ForwardingAddresses.Get
class
Gmail.Users.Settings.ForwardingAddresses.List
-
Constructor Summary
Constructors
Constructor and Description
ForwardingAddresses()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Gmail.Users.Settings.ForwardingAddresses.Create
create(String userId,
ForwardingAddress content)
Creates a forwarding address.
Gmail.Users.Settings.ForwardingAddresses.Delete
delete(String userId,
String forwardingEmail)
Deletes the specified forwarding address and revokes any verification that may have been
required.
Gmail.Users.Settings.ForwardingAddresses.Get
get(String userId,
String forwardingEmail)
Gets the specified forwarding address.
Gmail.Users.Settings.ForwardingAddresses.List
list(String userId)
Lists the forwarding addresses for the specified account.
-
-
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