Class MethodSnapshot
- java.lang.Object
-
- com.amazonaws.services.apigateway.model.MethodSnapshot
-
- All Implemented Interfaces:
Serializable,Cloneable
public class MethodSnapshot extends Object implements Serializable, Cloneable
Represents a summary of a Method resource, given a particular date and time.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MethodSnapshot()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodSnapshotclone()booleanequals(Object obj)BooleangetApiKeyRequired()Specifies whether the method requires a valid ApiKey.StringgetAuthorizationType()Specifies the type of authorization used for the method.inthashCode()BooleanisApiKeyRequired()Specifies whether the method requires a valid ApiKey.voidsetApiKeyRequired(Boolean apiKeyRequired)Specifies whether the method requires a valid ApiKey.voidsetAuthorizationType(String authorizationType)Specifies the type of authorization used for the method.StringtoString()Returns a string representation of this object; useful for testing and debugging.MethodSnapshotwithApiKeyRequired(Boolean apiKeyRequired)Specifies whether the method requires a valid ApiKey.MethodSnapshotwithAuthorizationType(String authorizationType)Specifies the type of authorization used for the method.
-
-
-
Method Detail
-
setAuthorizationType
public void setAuthorizationType(String authorizationType)
Specifies the type of authorization used for the method.
- Parameters:
authorizationType- Specifies the type of authorization used for the method.
-
getAuthorizationType
public String getAuthorizationType()
Specifies the type of authorization used for the method.
- Returns:
- Specifies the type of authorization used for the method.
-
withAuthorizationType
public MethodSnapshot withAuthorizationType(String authorizationType)
Specifies the type of authorization used for the method.
- Parameters:
authorizationType- Specifies the type of authorization used for the method.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setApiKeyRequired
public void setApiKeyRequired(Boolean apiKeyRequired)
Specifies whether the method requires a valid ApiKey.
- Parameters:
apiKeyRequired- Specifies whether the method requires a valid ApiKey.
-
getApiKeyRequired
public Boolean getApiKeyRequired()
Specifies whether the method requires a valid ApiKey.
- Returns:
- Specifies whether the method requires a valid ApiKey.
-
withApiKeyRequired
public MethodSnapshot withApiKeyRequired(Boolean apiKeyRequired)
Specifies whether the method requires a valid ApiKey.
- Parameters:
apiKeyRequired- Specifies whether the method requires a valid ApiKey.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isApiKeyRequired
public Boolean isApiKeyRequired()
Specifies whether the method requires a valid ApiKey.
- Returns:
- Specifies whether the method requires a valid ApiKey.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public MethodSnapshot clone()
-
-