public class SourceAuth extends Object implements Serializable, Cloneable
Information about the authorization settings for AWS CodeBuild to access the source code to be built.
This information is only for the AWS CodeBuild console's use. Your code should not get or set this information directly.
Constructor and Description |
---|
SourceAuth() |
Modifier and Type | Method and Description |
---|---|
SourceAuth |
clone() |
boolean |
equals(Object obj) |
String |
getResource()
The resource value that applies to the specified authorization type.
|
String |
getType()
The authorization type to use.
|
int |
hashCode() |
void |
setResource(String resource)
The resource value that applies to the specified authorization type.
|
void |
setType(SourceAuthType type)
The authorization type to use.
|
void |
setType(String type)
The authorization type to use.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
SourceAuth |
withResource(String resource)
The resource value that applies to the specified authorization type.
|
SourceAuth |
withType(SourceAuthType type)
The authorization type to use.
|
SourceAuth |
withType(String type)
The authorization type to use.
|
public void setType(String type)
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.
type
- The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.SourceAuthType
public String getType()
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.
OAUTH
, which represents the OAuth
authorization type.SourceAuthType
public SourceAuth withType(String type)
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.
type
- The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.SourceAuthType
public void setType(SourceAuthType type)
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.
type
- The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.SourceAuthType
public SourceAuth withType(SourceAuthType type)
The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.
type
- The authorization type to use. The only valid value is OAUTH
, which represents the OAuth
authorization type.SourceAuthType
public void setResource(String resource)
The resource value that applies to the specified authorization type.
resource
- The resource value that applies to the specified authorization type.public String getResource()
The resource value that applies to the specified authorization type.
public SourceAuth withResource(String resource)
The resource value that applies to the specified authorization type.
resource
- The resource value that applies to the specified authorization type.public String toString()
toString
in class Object
Object.toString()
public SourceAuth clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.