/* * 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.groundstation.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Detailed information about the agent. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AgentDetails implements Serializable, Cloneable, StructuredPojo { /** ** List of CPU cores reserved for the agent. *
*/ private java.util.List* Current agent version. *
*/ private String agentVersion; /** ** List of versions being used by agent components. *
*/ private java.util.List* ID of EC2 instance agent is running on. *
*/ private String instanceId; /** ** Type of EC2 instance agent is running on. *
*/ private String instanceType; /** ** This field should not be used. Use agentCpuCores instead. *
** List of CPU cores reserved for processes other than the agent running on the EC2 instance. *
*/ private java.util.List* List of CPU cores reserved for the agent. *
* * @return List of CPU cores reserved for the agent. */ public java.util.List* List of CPU cores reserved for the agent. *
* * @param agentCpuCores * List of CPU cores reserved for the agent. */ public void setAgentCpuCores(java.util.Collection* List of CPU cores reserved for the agent. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAgentCpuCores(java.util.Collection)} or {@link #withAgentCpuCores(java.util.Collection)} if you want * to override the existing values. *
* * @param agentCpuCores * List of CPU cores reserved for the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentDetails withAgentCpuCores(Integer... agentCpuCores) { if (this.agentCpuCores == null) { setAgentCpuCores(new java.util.ArrayList* List of CPU cores reserved for the agent. *
* * @param agentCpuCores * List of CPU cores reserved for the agent. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentDetails withAgentCpuCores(java.util.Collection* Current agent version. *
* * @param agentVersion * Current agent version. */ public void setAgentVersion(String agentVersion) { this.agentVersion = agentVersion; } /** ** Current agent version. *
* * @return Current agent version. */ public String getAgentVersion() { return this.agentVersion; } /** ** Current agent version. *
* * @param agentVersion * Current agent version. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentDetails withAgentVersion(String agentVersion) { setAgentVersion(agentVersion); return this; } /** ** List of versions being used by agent components. *
* * @return List of versions being used by agent components. */ public java.util.List* List of versions being used by agent components. *
* * @param componentVersions * List of versions being used by agent components. */ public void setComponentVersions(java.util.Collection* List of versions being used by agent components. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setComponentVersions(java.util.Collection)} or {@link #withComponentVersions(java.util.Collection)} if * you want to override the existing values. *
* * @param componentVersions * List of versions being used by agent components. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentDetails withComponentVersions(ComponentVersion... componentVersions) { if (this.componentVersions == null) { setComponentVersions(new java.util.ArrayList* List of versions being used by agent components. *
* * @param componentVersions * List of versions being used by agent components. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentDetails withComponentVersions(java.util.Collection* ID of EC2 instance agent is running on. *
* * @param instanceId * ID of EC2 instance agent is running on. */ public void setInstanceId(String instanceId) { this.instanceId = instanceId; } /** ** ID of EC2 instance agent is running on. *
* * @return ID of EC2 instance agent is running on. */ public String getInstanceId() { return this.instanceId; } /** ** ID of EC2 instance agent is running on. *
* * @param instanceId * ID of EC2 instance agent is running on. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentDetails withInstanceId(String instanceId) { setInstanceId(instanceId); return this; } /** ** Type of EC2 instance agent is running on. *
* * @param instanceType * Type of EC2 instance agent is running on. */ public void setInstanceType(String instanceType) { this.instanceType = instanceType; } /** ** Type of EC2 instance agent is running on. *
* * @return Type of EC2 instance agent is running on. */ public String getInstanceType() { return this.instanceType; } /** ** Type of EC2 instance agent is running on. *
* * @param instanceType * Type of EC2 instance agent is running on. * @return Returns a reference to this object so that method calls can be chained together. */ public AgentDetails withInstanceType(String instanceType) { setInstanceType(instanceType); return this; } /** ** This field should not be used. Use agentCpuCores instead. *
** List of CPU cores reserved for processes other than the agent running on the EC2 instance. *
* * @return* This field should not be used. Use agentCpuCores instead. *
* *
* List of CPU cores reserved for processes other than the agent running on the EC2 instance.
*/
public java.util.List
* This field should not be used. Use agentCpuCores instead.
*
* List of CPU cores reserved for processes other than the agent running on the EC2 instance.
*
* This field should not be used. Use agentCpuCores instead.
*
* List of CPU cores reserved for processes other than the agent running on the EC2 instance.
*/
public void setReservedCpuCores(java.util.Collection
* This field should not be used. Use agentCpuCores instead.
*
* List of CPU cores reserved for processes other than the agent running on the EC2 instance.
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setReservedCpuCores(java.util.Collection)} or {@link #withReservedCpuCores(java.util.Collection)} if you
* want to override the existing values.
*
* This field should not be used. Use agentCpuCores instead.
*
* List of CPU cores reserved for processes other than the agent running on the EC2 instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AgentDetails withReservedCpuCores(Integer... reservedCpuCores) {
if (this.reservedCpuCores == null) {
setReservedCpuCores(new java.util.ArrayList
* This field should not be used. Use agentCpuCores instead.
*
* List of CPU cores reserved for processes other than the agent running on the EC2 instance.
*
* This field should not be used. Use agentCpuCores instead.
*
* List of CPU cores reserved for processes other than the agent running on the EC2 instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AgentDetails withReservedCpuCores(java.util.Collection