org.jclouds.googlecomputeengine.domain
Class Instance.ServiceAccount

java.lang.Object
  extended by org.jclouds.googlecomputeengine.domain.Instance.ServiceAccount
Enclosing class:
Instance

public static final class Instance.ServiceAccount
extends Object

A service account for which access tokens are to be made available to the instance through metadata queries.

Author:
David Alves
See Also:

Nested Class Summary
static class Instance.ServiceAccount.Builder
           
 
Constructor Summary
Instance.ServiceAccount(String email, Set<String> scopes)
           
 
Method Summary
static Instance.ServiceAccount.Builder builder()
           
 boolean equals(Object obj)
          
 String getEmail()
           
 Set<String> getScopes()
           
 int hashCode()
          
protected  com.google.common.base.Objects.ToStringHelper string()
          
 Instance.ServiceAccount.Builder toBuilder()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Instance.ServiceAccount

@ConstructorProperties(value={"email","scopes"})
public Instance.ServiceAccount(String email,
                                                          Set<String> scopes)
Method Detail

getEmail

public String getEmail()
Returns:
email address of the service account.

getScopes

public Set<String> getScopes()
Returns:
the list of scopes to be made available for this service account.

hashCode

public int hashCode()

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

string

protected com.google.common.base.Objects.ToStringHelper string()


toString

public String toString()

Overrides:
toString in class Object

builder

public static Instance.ServiceAccount.Builder builder()

toBuilder

public Instance.ServiceAccount.Builder toBuilder()


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.