public class MethodSnapshot
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents a summary of a Method resource, given a particular date and time.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
apiKeyRequired
Specifies whether the method requires a valid ApiKey.
|
private java.lang.String |
authorizationType
Specifies the type of authorization used for the method.
|
Constructor and Description |
---|
MethodSnapshot() |
Modifier and Type | Method and Description |
---|---|
MethodSnapshot |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getApiKeyRequired()
Specifies whether the method requires a valid ApiKey.
|
java.lang.String |
getAuthorizationType()
Specifies the type of authorization used for the method.
|
int |
hashCode() |
java.lang.Boolean |
isApiKeyRequired()
Specifies whether the method requires a valid ApiKey.
|
void |
setApiKeyRequired(java.lang.Boolean apiKeyRequired)
Specifies whether the method requires a valid ApiKey.
|
void |
setAuthorizationType(java.lang.String authorizationType)
Specifies the type of authorization used for the method.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
MethodSnapshot |
withApiKeyRequired(java.lang.Boolean apiKeyRequired)
Specifies whether the method requires a valid ApiKey.
|
MethodSnapshot |
withAuthorizationType(java.lang.String authorizationType)
Specifies the type of authorization used for the method.
|
private java.lang.String authorizationType
Specifies the type of authorization used for the method.
private java.lang.Boolean apiKeyRequired
Specifies whether the method requires a valid ApiKey.
public void setAuthorizationType(java.lang.String authorizationType)
Specifies the type of authorization used for the method.
authorizationType
- Specifies the type of authorization used for the method.public java.lang.String getAuthorizationType()
Specifies the type of authorization used for the method.
public MethodSnapshot withAuthorizationType(java.lang.String authorizationType)
Specifies the type of authorization used for the method.
authorizationType
- Specifies the type of authorization used for the method.public void setApiKeyRequired(java.lang.Boolean apiKeyRequired)
Specifies whether the method requires a valid ApiKey.
apiKeyRequired
- Specifies whether the method requires a valid ApiKey.public java.lang.Boolean getApiKeyRequired()
Specifies whether the method requires a valid ApiKey.
public MethodSnapshot withApiKeyRequired(java.lang.Boolean apiKeyRequired)
Specifies whether the method requires a valid ApiKey.
apiKeyRequired
- Specifies whether the method requires a valid ApiKey.public java.lang.Boolean isApiKeyRequired()
Specifies whether the method requires a valid ApiKey.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public MethodSnapshot clone()
clone
in class java.lang.Object