@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LambdaFunctionMemoryRecommendationOption extends Object implements Serializable, Cloneable, StructuredPojo
Describes a recommendation option for an AWS Lambda function.
Constructor and Description |
---|
LambdaFunctionMemoryRecommendationOption() |
Modifier and Type | Method and Description |
---|---|
LambdaFunctionMemoryRecommendationOption |
clone() |
boolean |
equals(Object obj) |
Integer |
getMemorySize()
The memory size, in MB, of the function recommendation option.
|
List<LambdaFunctionMemoryProjectedMetric> |
getProjectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the function recommendation option.
|
Integer |
getRank()
The rank of the function recommendation option.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setMemorySize(Integer memorySize)
The memory size, in MB, of the function recommendation option.
|
void |
setProjectedUtilizationMetrics(Collection<LambdaFunctionMemoryProjectedMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the function recommendation option.
|
void |
setRank(Integer rank)
The rank of the function recommendation option.
|
String |
toString()
Returns a string representation of this object.
|
LambdaFunctionMemoryRecommendationOption |
withMemorySize(Integer memorySize)
The memory size, in MB, of the function recommendation option.
|
LambdaFunctionMemoryRecommendationOption |
withProjectedUtilizationMetrics(Collection<LambdaFunctionMemoryProjectedMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the function recommendation option.
|
LambdaFunctionMemoryRecommendationOption |
withProjectedUtilizationMetrics(LambdaFunctionMemoryProjectedMetric... projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the function recommendation option.
|
LambdaFunctionMemoryRecommendationOption |
withRank(Integer rank)
The rank of the function recommendation option.
|
public LambdaFunctionMemoryRecommendationOption()
public void setRank(Integer rank)
The rank of the function recommendation option.
The top recommendation option is ranked as 1
.
rank
- The rank of the function recommendation option.
The top recommendation option is ranked as 1
.
public Integer getRank()
The rank of the function recommendation option.
The top recommendation option is ranked as 1
.
The top recommendation option is ranked as 1
.
public LambdaFunctionMemoryRecommendationOption withRank(Integer rank)
The rank of the function recommendation option.
The top recommendation option is ranked as 1
.
rank
- The rank of the function recommendation option.
The top recommendation option is ranked as 1
.
public void setMemorySize(Integer memorySize)
The memory size, in MB, of the function recommendation option.
memorySize
- The memory size, in MB, of the function recommendation option.public Integer getMemorySize()
The memory size, in MB, of the function recommendation option.
public LambdaFunctionMemoryRecommendationOption withMemorySize(Integer memorySize)
The memory size, in MB, of the function recommendation option.
memorySize
- The memory size, in MB, of the function recommendation option.public List<LambdaFunctionMemoryProjectedMetric> getProjectedUtilizationMetrics()
An array of objects that describe the projected utilization metrics of the function recommendation option.
public void setProjectedUtilizationMetrics(Collection<LambdaFunctionMemoryProjectedMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the function recommendation option.
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the function recommendation option.public LambdaFunctionMemoryRecommendationOption withProjectedUtilizationMetrics(LambdaFunctionMemoryProjectedMetric... projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the function recommendation option.
NOTE: This method appends the values to the existing list (if any). Use
setProjectedUtilizationMetrics(java.util.Collection)
or
withProjectedUtilizationMetrics(java.util.Collection)
if you want to override the existing values.
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the function recommendation option.public LambdaFunctionMemoryRecommendationOption withProjectedUtilizationMetrics(Collection<LambdaFunctionMemoryProjectedMetric> projectedUtilizationMetrics)
An array of objects that describe the projected utilization metrics of the function recommendation option.
projectedUtilizationMetrics
- An array of objects that describe the projected utilization metrics of the function recommendation option.public String toString()
toString
in class Object
Object.toString()
public LambdaFunctionMemoryRecommendationOption clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.