Package com.pulumi.automation
Class WhoAmIResult
- java.lang.Object
-
- com.pulumi.automation.WhoAmIResult
-
public class WhoAmIResult extends java.lang.Object
The result of aWorkspace.whoAmI()
operation.
-
-
Constructor Summary
Constructors Constructor Description WhoAmIResult(java.lang.String user, java.lang.String url, java.util.List<java.lang.String> organizations)
Creates a new instance ofWhoAmIResult
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
organizations()
Organizations the user are in for the backend.java.lang.String
url()
A URL at which information about this backend may be seen.java.lang.String
user()
-
-
-
Constructor Detail
-
WhoAmIResult
public WhoAmIResult(java.lang.String user, java.lang.String url, java.util.List<java.lang.String> organizations)
Creates a new instance ofWhoAmIResult
.- Parameters:
user
- the identify of the current userurl
- the URL at which information about this backend may be seenorganizations
- organizations the user are in for the backend
-
-
Method Detail
-
user
public java.lang.String user()
-
url
@Nullable public java.lang.String url()
A URL at which information about this backend may be seen.- Returns:
- the URL
-
organizations
public java.util.List<java.lang.String> organizations()
Organizations the user are in for the backend.- Returns:
- the organizations
-
-