/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.greengrassv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Contains information about a container in which Lambda functions run on Greengrass core devices. *
* * @see AWS * API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class LambdaContainerParams implements Serializable, Cloneable, StructuredPojo { /** ** The memory size of the container, expressed in kilobytes. *
*
* Default: 16384
(16 MB)
*
* Whether or not the container can read information from the device's /sys
folder.
*
* Default: false
*
* The list of volumes that the container can access. *
*/ private java.util.List* The list of system devices that the container can access. *
*/ private java.util.List* The memory size of the container, expressed in kilobytes. *
*
* Default: 16384
(16 MB)
*
* Default: 16384
(16 MB)
*/
public void setMemorySizeInKB(Integer memorySizeInKB) {
this.memorySizeInKB = memorySizeInKB;
}
/**
*
* The memory size of the container, expressed in kilobytes. *
*
* Default: 16384
(16 MB)
*
* Default: 16384
(16 MB)
*/
public Integer getMemorySizeInKB() {
return this.memorySizeInKB;
}
/**
*
* The memory size of the container, expressed in kilobytes. *
*
* Default: 16384
(16 MB)
*
* Default: 16384
(16 MB)
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LambdaContainerParams withMemorySizeInKB(Integer memorySizeInKB) {
setMemorySizeInKB(memorySizeInKB);
return this;
}
/**
*
* Whether or not the container can read information from the device's /sys
folder.
*
* Default: false
*
/sys
folder.
*
* Default: false
*/
public void setMountROSysfs(Boolean mountROSysfs) {
this.mountROSysfs = mountROSysfs;
}
/**
*
* Whether or not the container can read information from the device's /sys
folder.
*
* Default: false
*
/sys
folder.
*
* Default: false
*/
public Boolean getMountROSysfs() {
return this.mountROSysfs;
}
/**
*
* Whether or not the container can read information from the device's /sys
folder.
*
* Default: false
*
/sys
folder.
*
* Default: false
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LambdaContainerParams withMountROSysfs(Boolean mountROSysfs) {
setMountROSysfs(mountROSysfs);
return this;
}
/**
*
* Whether or not the container can read information from the device's /sys
folder.
*
* Default: false
*
/sys
folder.
*
* Default: false
*/
public Boolean isMountROSysfs() {
return this.mountROSysfs;
}
/**
*
* The list of volumes that the container can access. *
* * @return The list of volumes that the container can access. */ public java.util.List* The list of volumes that the container can access. *
* * @param volumes * The list of volumes that the container can access. */ public void setVolumes(java.util.Collection* The list of volumes that the container can access. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVolumes(java.util.Collection)} or {@link #withVolumes(java.util.Collection)} if you want to override * the existing values. *
* * @param volumes * The list of volumes that the container can access. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaContainerParams withVolumes(LambdaVolumeMount... volumes) { if (this.volumes == null) { setVolumes(new java.util.ArrayList* The list of volumes that the container can access. *
* * @param volumes * The list of volumes that the container can access. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaContainerParams withVolumes(java.util.Collection* The list of system devices that the container can access. *
* * @return The list of system devices that the container can access. */ public java.util.List* The list of system devices that the container can access. *
* * @param devices * The list of system devices that the container can access. */ public void setDevices(java.util.Collection* The list of system devices that the container can access. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setDevices(java.util.Collection)} or {@link #withDevices(java.util.Collection)} if you want to override * the existing values. *
* * @param devices * The list of system devices that the container can access. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaContainerParams withDevices(LambdaDeviceMount... devices) { if (this.devices == null) { setDevices(new java.util.ArrayList* The list of system devices that the container can access. *
* * @param devices * The list of system devices that the container can access. * @return Returns a reference to this object so that method calls can be chained together. */ public LambdaContainerParams withDevices(java.util.Collection