com.amazonaws.services.storagegateway.model.DescribeGatewayInformationResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-storagegateway Show documentation
/*
* 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.storagegateway.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* A JSON object containing the following fields:
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeGatewayInformationResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
private String gatewayARN;
/**
*
* The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon
* Resource Name (ARN), which you use as input for other operations.
*
*/
private String gatewayId;
/**
*
* The name you configured for your gateway.
*
*/
private String gatewayName;
/**
*
* A value that indicates the time zone configured for the gateway.
*
*/
private String gatewayTimezone;
/**
*
* A value that indicates the operating state of the gateway.
*
*/
private String gatewayState;
/**
*
* A NetworkInterface array that contains descriptions of the gateway network interfaces.
*
*/
private com.amazonaws.internal.SdkInternalList gatewayNetworkInterfaces;
/**
*
* The type of the gateway.
*
*/
private String gatewayType;
/**
*
* The date on which an update to the gateway is available. This date is in the time zone of the gateway. If the
* gateway is not available for an update this field is not returned in the response.
*
*/
private String nextUpdateAvailabilityDate;
/**
*
* The date on which the last software update was applied to the gateway. If the gateway has never been updated,
* this field does not return a value in the response. This only only exist and returns once it have been chosen and
* set by the SGW service, based on the OS version of the gateway VM
*
*/
private String lastSoftwareUpdate;
/**
*
* The ID of the Amazon EC2 instance that was used to launch the gateway.
*
*/
private String ec2InstanceId;
/**
*
* The Amazon Web Services Region where the Amazon EC2 instance is located.
*
*/
private String ec2InstanceRegion;
/**
*
* A list of up to 50 tags assigned to the gateway, sorted alphabetically by key name. Each tag is a key-value pair.
* For a gateway with more than 10 tags assigned, you can view all tags using the ListTagsForResource
* API operation.
*
*/
private com.amazonaws.internal.SdkInternalList tags;
/**
*
* The configuration settings for the virtual private cloud (VPC) endpoint for your gateway.
*
*/
private String vPCEndpoint;
/**
*
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor events in the gateway.
* This field only only exist and returns once it have been chosen and set by the SGW service, based on the OS
* version of the gateway VM
*
*/
private String cloudWatchLogGroupARN;
/**
*
* The type of hardware or software platform on which the gateway is running.
*
*/
private String hostEnvironment;
/**
*
* The type of endpoint for your gateway.
*
*
* Valid Values: STANDARD
| FIPS
*
*/
private String endpointType;
/**
*
* Date after which this gateway will not receive software updates for new features.
*
*/
private String softwareUpdatesEndDate;
/**
*
* Date after which this gateway will not receive software updates for new features and bug fixes.
*
*/
private String deprecationDate;
/**
*
* Specifies the size of the gateway's metadata cache.
*
*/
private String gatewayCapacity;
/**
*
* A list of the metadata cache sizes that the gateway can support based on its current hardware specifications.
*
*/
private com.amazonaws.internal.SdkInternalList supportedGatewayCapacities;
/**
*
* A unique identifier for the specific instance of the host platform running the gateway. This value is only
* available for certain host environments, and its format depends on the host environment type.
*
*/
private String hostEnvironmentId;
/**
* @param gatewayARN
*/
public void setGatewayARN(String gatewayARN) {
this.gatewayARN = gatewayARN;
}
/**
* @return
*/
public String getGatewayARN() {
return this.gatewayARN;
}
/**
* @param gatewayARN
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withGatewayARN(String gatewayARN) {
setGatewayARN(gatewayARN);
return this;
}
/**
*
* The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon
* Resource Name (ARN), which you use as input for other operations.
*
*
* @param gatewayId
* The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway
* Amazon Resource Name (ARN), which you use as input for other operations.
*/
public void setGatewayId(String gatewayId) {
this.gatewayId = gatewayId;
}
/**
*
* The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon
* Resource Name (ARN), which you use as input for other operations.
*
*
* @return The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway
* Amazon Resource Name (ARN), which you use as input for other operations.
*/
public String getGatewayId() {
return this.gatewayId;
}
/**
*
* The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway Amazon
* Resource Name (ARN), which you use as input for other operations.
*
*
* @param gatewayId
* The unique identifier assigned to your gateway during activation. This ID becomes part of the gateway
* Amazon Resource Name (ARN), which you use as input for other operations.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withGatewayId(String gatewayId) {
setGatewayId(gatewayId);
return this;
}
/**
*
* The name you configured for your gateway.
*
*
* @param gatewayName
* The name you configured for your gateway.
*/
public void setGatewayName(String gatewayName) {
this.gatewayName = gatewayName;
}
/**
*
* The name you configured for your gateway.
*
*
* @return The name you configured for your gateway.
*/
public String getGatewayName() {
return this.gatewayName;
}
/**
*
* The name you configured for your gateway.
*
*
* @param gatewayName
* The name you configured for your gateway.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withGatewayName(String gatewayName) {
setGatewayName(gatewayName);
return this;
}
/**
*
* A value that indicates the time zone configured for the gateway.
*
*
* @param gatewayTimezone
* A value that indicates the time zone configured for the gateway.
*/
public void setGatewayTimezone(String gatewayTimezone) {
this.gatewayTimezone = gatewayTimezone;
}
/**
*
* A value that indicates the time zone configured for the gateway.
*
*
* @return A value that indicates the time zone configured for the gateway.
*/
public String getGatewayTimezone() {
return this.gatewayTimezone;
}
/**
*
* A value that indicates the time zone configured for the gateway.
*
*
* @param gatewayTimezone
* A value that indicates the time zone configured for the gateway.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withGatewayTimezone(String gatewayTimezone) {
setGatewayTimezone(gatewayTimezone);
return this;
}
/**
*
* A value that indicates the operating state of the gateway.
*
*
* @param gatewayState
* A value that indicates the operating state of the gateway.
*/
public void setGatewayState(String gatewayState) {
this.gatewayState = gatewayState;
}
/**
*
* A value that indicates the operating state of the gateway.
*
*
* @return A value that indicates the operating state of the gateway.
*/
public String getGatewayState() {
return this.gatewayState;
}
/**
*
* A value that indicates the operating state of the gateway.
*
*
* @param gatewayState
* A value that indicates the operating state of the gateway.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withGatewayState(String gatewayState) {
setGatewayState(gatewayState);
return this;
}
/**
*
* A NetworkInterface array that contains descriptions of the gateway network interfaces.
*
*
* @return A NetworkInterface array that contains descriptions of the gateway network interfaces.
*/
public java.util.List getGatewayNetworkInterfaces() {
if (gatewayNetworkInterfaces == null) {
gatewayNetworkInterfaces = new com.amazonaws.internal.SdkInternalList();
}
return gatewayNetworkInterfaces;
}
/**
*
* A NetworkInterface array that contains descriptions of the gateway network interfaces.
*
*
* @param gatewayNetworkInterfaces
* A NetworkInterface array that contains descriptions of the gateway network interfaces.
*/
public void setGatewayNetworkInterfaces(java.util.Collection gatewayNetworkInterfaces) {
if (gatewayNetworkInterfaces == null) {
this.gatewayNetworkInterfaces = null;
return;
}
this.gatewayNetworkInterfaces = new com.amazonaws.internal.SdkInternalList(gatewayNetworkInterfaces);
}
/**
*
* A NetworkInterface array that contains descriptions of the gateway network interfaces.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setGatewayNetworkInterfaces(java.util.Collection)} or
* {@link #withGatewayNetworkInterfaces(java.util.Collection)} if you want to override the existing values.
*
*
* @param gatewayNetworkInterfaces
* A NetworkInterface array that contains descriptions of the gateway network interfaces.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withGatewayNetworkInterfaces(NetworkInterface... gatewayNetworkInterfaces) {
if (this.gatewayNetworkInterfaces == null) {
setGatewayNetworkInterfaces(new com.amazonaws.internal.SdkInternalList(gatewayNetworkInterfaces.length));
}
for (NetworkInterface ele : gatewayNetworkInterfaces) {
this.gatewayNetworkInterfaces.add(ele);
}
return this;
}
/**
*
* A NetworkInterface array that contains descriptions of the gateway network interfaces.
*
*
* @param gatewayNetworkInterfaces
* A NetworkInterface array that contains descriptions of the gateway network interfaces.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withGatewayNetworkInterfaces(java.util.Collection gatewayNetworkInterfaces) {
setGatewayNetworkInterfaces(gatewayNetworkInterfaces);
return this;
}
/**
*
* The type of the gateway.
*
*
* @param gatewayType
* The type of the gateway.
*/
public void setGatewayType(String gatewayType) {
this.gatewayType = gatewayType;
}
/**
*
* The type of the gateway.
*
*
* @return The type of the gateway.
*/
public String getGatewayType() {
return this.gatewayType;
}
/**
*
* The type of the gateway.
*
*
* @param gatewayType
* The type of the gateway.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withGatewayType(String gatewayType) {
setGatewayType(gatewayType);
return this;
}
/**
*
* The date on which an update to the gateway is available. This date is in the time zone of the gateway. If the
* gateway is not available for an update this field is not returned in the response.
*
*
* @param nextUpdateAvailabilityDate
* The date on which an update to the gateway is available. This date is in the time zone of the gateway. If
* the gateway is not available for an update this field is not returned in the response.
*/
public void setNextUpdateAvailabilityDate(String nextUpdateAvailabilityDate) {
this.nextUpdateAvailabilityDate = nextUpdateAvailabilityDate;
}
/**
*
* The date on which an update to the gateway is available. This date is in the time zone of the gateway. If the
* gateway is not available for an update this field is not returned in the response.
*
*
* @return The date on which an update to the gateway is available. This date is in the time zone of the gateway. If
* the gateway is not available for an update this field is not returned in the response.
*/
public String getNextUpdateAvailabilityDate() {
return this.nextUpdateAvailabilityDate;
}
/**
*
* The date on which an update to the gateway is available. This date is in the time zone of the gateway. If the
* gateway is not available for an update this field is not returned in the response.
*
*
* @param nextUpdateAvailabilityDate
* The date on which an update to the gateway is available. This date is in the time zone of the gateway. If
* the gateway is not available for an update this field is not returned in the response.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withNextUpdateAvailabilityDate(String nextUpdateAvailabilityDate) {
setNextUpdateAvailabilityDate(nextUpdateAvailabilityDate);
return this;
}
/**
*
* The date on which the last software update was applied to the gateway. If the gateway has never been updated,
* this field does not return a value in the response. This only only exist and returns once it have been chosen and
* set by the SGW service, based on the OS version of the gateway VM
*
*
* @param lastSoftwareUpdate
* The date on which the last software update was applied to the gateway. If the gateway has never been
* updated, this field does not return a value in the response. This only only exist and returns once it have
* been chosen and set by the SGW service, based on the OS version of the gateway VM
*/
public void setLastSoftwareUpdate(String lastSoftwareUpdate) {
this.lastSoftwareUpdate = lastSoftwareUpdate;
}
/**
*
* The date on which the last software update was applied to the gateway. If the gateway has never been updated,
* this field does not return a value in the response. This only only exist and returns once it have been chosen and
* set by the SGW service, based on the OS version of the gateway VM
*
*
* @return The date on which the last software update was applied to the gateway. If the gateway has never been
* updated, this field does not return a value in the response. This only only exist and returns once it
* have been chosen and set by the SGW service, based on the OS version of the gateway VM
*/
public String getLastSoftwareUpdate() {
return this.lastSoftwareUpdate;
}
/**
*
* The date on which the last software update was applied to the gateway. If the gateway has never been updated,
* this field does not return a value in the response. This only only exist and returns once it have been chosen and
* set by the SGW service, based on the OS version of the gateway VM
*
*
* @param lastSoftwareUpdate
* The date on which the last software update was applied to the gateway. If the gateway has never been
* updated, this field does not return a value in the response. This only only exist and returns once it have
* been chosen and set by the SGW service, based on the OS version of the gateway VM
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withLastSoftwareUpdate(String lastSoftwareUpdate) {
setLastSoftwareUpdate(lastSoftwareUpdate);
return this;
}
/**
*
* The ID of the Amazon EC2 instance that was used to launch the gateway.
*
*
* @param ec2InstanceId
* The ID of the Amazon EC2 instance that was used to launch the gateway.
*/
public void setEc2InstanceId(String ec2InstanceId) {
this.ec2InstanceId = ec2InstanceId;
}
/**
*
* The ID of the Amazon EC2 instance that was used to launch the gateway.
*
*
* @return The ID of the Amazon EC2 instance that was used to launch the gateway.
*/
public String getEc2InstanceId() {
return this.ec2InstanceId;
}
/**
*
* The ID of the Amazon EC2 instance that was used to launch the gateway.
*
*
* @param ec2InstanceId
* The ID of the Amazon EC2 instance that was used to launch the gateway.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withEc2InstanceId(String ec2InstanceId) {
setEc2InstanceId(ec2InstanceId);
return this;
}
/**
*
* The Amazon Web Services Region where the Amazon EC2 instance is located.
*
*
* @param ec2InstanceRegion
* The Amazon Web Services Region where the Amazon EC2 instance is located.
*/
public void setEc2InstanceRegion(String ec2InstanceRegion) {
this.ec2InstanceRegion = ec2InstanceRegion;
}
/**
*
* The Amazon Web Services Region where the Amazon EC2 instance is located.
*
*
* @return The Amazon Web Services Region where the Amazon EC2 instance is located.
*/
public String getEc2InstanceRegion() {
return this.ec2InstanceRegion;
}
/**
*
* The Amazon Web Services Region where the Amazon EC2 instance is located.
*
*
* @param ec2InstanceRegion
* The Amazon Web Services Region where the Amazon EC2 instance is located.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withEc2InstanceRegion(String ec2InstanceRegion) {
setEc2InstanceRegion(ec2InstanceRegion);
return this;
}
/**
*
* A list of up to 50 tags assigned to the gateway, sorted alphabetically by key name. Each tag is a key-value pair.
* For a gateway with more than 10 tags assigned, you can view all tags using the ListTagsForResource
* API operation.
*
*
* @return A list of up to 50 tags assigned to the gateway, sorted alphabetically by key name. Each tag is a
* key-value pair. For a gateway with more than 10 tags assigned, you can view all tags using the
* ListTagsForResource
API operation.
*/
public java.util.List getTags() {
if (tags == null) {
tags = new com.amazonaws.internal.SdkInternalList();
}
return tags;
}
/**
*
* A list of up to 50 tags assigned to the gateway, sorted alphabetically by key name. Each tag is a key-value pair.
* For a gateway with more than 10 tags assigned, you can view all tags using the ListTagsForResource
* API operation.
*
*
* @param tags
* A list of up to 50 tags assigned to the gateway, sorted alphabetically by key name. Each tag is a
* key-value pair. For a gateway with more than 10 tags assigned, you can view all tags using the
* ListTagsForResource
API operation.
*/
public void setTags(java.util.Collection tags) {
if (tags == null) {
this.tags = null;
return;
}
this.tags = new com.amazonaws.internal.SdkInternalList(tags);
}
/**
*
* A list of up to 50 tags assigned to the gateway, sorted alphabetically by key name. Each tag is a key-value pair.
* For a gateway with more than 10 tags assigned, you can view all tags using the ListTagsForResource
* API operation.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tags
* A list of up to 50 tags assigned to the gateway, sorted alphabetically by key name. Each tag is a
* key-value pair. For a gateway with more than 10 tags assigned, you can view all tags using the
* ListTagsForResource
API operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withTags(Tag... tags) {
if (this.tags == null) {
setTags(new com.amazonaws.internal.SdkInternalList(tags.length));
}
for (Tag ele : tags) {
this.tags.add(ele);
}
return this;
}
/**
*
* A list of up to 50 tags assigned to the gateway, sorted alphabetically by key name. Each tag is a key-value pair.
* For a gateway with more than 10 tags assigned, you can view all tags using the ListTagsForResource
* API operation.
*
*
* @param tags
* A list of up to 50 tags assigned to the gateway, sorted alphabetically by key name. Each tag is a
* key-value pair. For a gateway with more than 10 tags assigned, you can view all tags using the
* ListTagsForResource
API operation.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withTags(java.util.Collection tags) {
setTags(tags);
return this;
}
/**
*
* The configuration settings for the virtual private cloud (VPC) endpoint for your gateway.
*
*
* @param vPCEndpoint
* The configuration settings for the virtual private cloud (VPC) endpoint for your gateway.
*/
public void setVPCEndpoint(String vPCEndpoint) {
this.vPCEndpoint = vPCEndpoint;
}
/**
*
* The configuration settings for the virtual private cloud (VPC) endpoint for your gateway.
*
*
* @return The configuration settings for the virtual private cloud (VPC) endpoint for your gateway.
*/
public String getVPCEndpoint() {
return this.vPCEndpoint;
}
/**
*
* The configuration settings for the virtual private cloud (VPC) endpoint for your gateway.
*
*
* @param vPCEndpoint
* The configuration settings for the virtual private cloud (VPC) endpoint for your gateway.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withVPCEndpoint(String vPCEndpoint) {
setVPCEndpoint(vPCEndpoint);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor events in the gateway.
* This field only only exist and returns once it have been chosen and set by the SGW service, based on the OS
* version of the gateway VM
*
*
* @param cloudWatchLogGroupARN
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor events in the
* gateway. This field only only exist and returns once it have been chosen and set by the SGW service, based
* on the OS version of the gateway VM
*/
public void setCloudWatchLogGroupARN(String cloudWatchLogGroupARN) {
this.cloudWatchLogGroupARN = cloudWatchLogGroupARN;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor events in the gateway.
* This field only only exist and returns once it have been chosen and set by the SGW service, based on the OS
* version of the gateway VM
*
*
* @return The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor events in the
* gateway. This field only only exist and returns once it have been chosen and set by the SGW service,
* based on the OS version of the gateway VM
*/
public String getCloudWatchLogGroupARN() {
return this.cloudWatchLogGroupARN;
}
/**
*
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor events in the gateway.
* This field only only exist and returns once it have been chosen and set by the SGW service, based on the OS
* version of the gateway VM
*
*
* @param cloudWatchLogGroupARN
* The Amazon Resource Name (ARN) of the Amazon CloudWatch log group that is used to monitor events in the
* gateway. This field only only exist and returns once it have been chosen and set by the SGW service, based
* on the OS version of the gateway VM
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withCloudWatchLogGroupARN(String cloudWatchLogGroupARN) {
setCloudWatchLogGroupARN(cloudWatchLogGroupARN);
return this;
}
/**
*
* The type of hardware or software platform on which the gateway is running.
*
*
* @param hostEnvironment
* The type of hardware or software platform on which the gateway is running.
* @see HostEnvironment
*/
public void setHostEnvironment(String hostEnvironment) {
this.hostEnvironment = hostEnvironment;
}
/**
*
* The type of hardware or software platform on which the gateway is running.
*
*
* @return The type of hardware or software platform on which the gateway is running.
* @see HostEnvironment
*/
public String getHostEnvironment() {
return this.hostEnvironment;
}
/**
*
* The type of hardware or software platform on which the gateway is running.
*
*
* @param hostEnvironment
* The type of hardware or software platform on which the gateway is running.
* @return Returns a reference to this object so that method calls can be chained together.
* @see HostEnvironment
*/
public DescribeGatewayInformationResult withHostEnvironment(String hostEnvironment) {
setHostEnvironment(hostEnvironment);
return this;
}
/**
*
* The type of hardware or software platform on which the gateway is running.
*
*
* @param hostEnvironment
* The type of hardware or software platform on which the gateway is running.
* @return Returns a reference to this object so that method calls can be chained together.
* @see HostEnvironment
*/
public DescribeGatewayInformationResult withHostEnvironment(HostEnvironment hostEnvironment) {
this.hostEnvironment = hostEnvironment.toString();
return this;
}
/**
*
* The type of endpoint for your gateway.
*
*
* Valid Values: STANDARD
| FIPS
*
*
* @param endpointType
* The type of endpoint for your gateway.
*
* Valid Values: STANDARD
| FIPS
*/
public void setEndpointType(String endpointType) {
this.endpointType = endpointType;
}
/**
*
* The type of endpoint for your gateway.
*
*
* Valid Values: STANDARD
| FIPS
*
*
* @return The type of endpoint for your gateway.
*
* Valid Values: STANDARD
| FIPS
*/
public String getEndpointType() {
return this.endpointType;
}
/**
*
* The type of endpoint for your gateway.
*
*
* Valid Values: STANDARD
| FIPS
*
*
* @param endpointType
* The type of endpoint for your gateway.
*
* Valid Values: STANDARD
| FIPS
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withEndpointType(String endpointType) {
setEndpointType(endpointType);
return this;
}
/**
*
* Date after which this gateway will not receive software updates for new features.
*
*
* @param softwareUpdatesEndDate
* Date after which this gateway will not receive software updates for new features.
*/
public void setSoftwareUpdatesEndDate(String softwareUpdatesEndDate) {
this.softwareUpdatesEndDate = softwareUpdatesEndDate;
}
/**
*
* Date after which this gateway will not receive software updates for new features.
*
*
* @return Date after which this gateway will not receive software updates for new features.
*/
public String getSoftwareUpdatesEndDate() {
return this.softwareUpdatesEndDate;
}
/**
*
* Date after which this gateway will not receive software updates for new features.
*
*
* @param softwareUpdatesEndDate
* Date after which this gateway will not receive software updates for new features.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withSoftwareUpdatesEndDate(String softwareUpdatesEndDate) {
setSoftwareUpdatesEndDate(softwareUpdatesEndDate);
return this;
}
/**
*
* Date after which this gateway will not receive software updates for new features and bug fixes.
*
*
* @param deprecationDate
* Date after which this gateway will not receive software updates for new features and bug fixes.
*/
public void setDeprecationDate(String deprecationDate) {
this.deprecationDate = deprecationDate;
}
/**
*
* Date after which this gateway will not receive software updates for new features and bug fixes.
*
*
* @return Date after which this gateway will not receive software updates for new features and bug fixes.
*/
public String getDeprecationDate() {
return this.deprecationDate;
}
/**
*
* Date after which this gateway will not receive software updates for new features and bug fixes.
*
*
* @param deprecationDate
* Date after which this gateway will not receive software updates for new features and bug fixes.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withDeprecationDate(String deprecationDate) {
setDeprecationDate(deprecationDate);
return this;
}
/**
*
* Specifies the size of the gateway's metadata cache.
*
*
* @param gatewayCapacity
* Specifies the size of the gateway's metadata cache.
* @see GatewayCapacity
*/
public void setGatewayCapacity(String gatewayCapacity) {
this.gatewayCapacity = gatewayCapacity;
}
/**
*
* Specifies the size of the gateway's metadata cache.
*
*
* @return Specifies the size of the gateway's metadata cache.
* @see GatewayCapacity
*/
public String getGatewayCapacity() {
return this.gatewayCapacity;
}
/**
*
* Specifies the size of the gateway's metadata cache.
*
*
* @param gatewayCapacity
* Specifies the size of the gateway's metadata cache.
* @return Returns a reference to this object so that method calls can be chained together.
* @see GatewayCapacity
*/
public DescribeGatewayInformationResult withGatewayCapacity(String gatewayCapacity) {
setGatewayCapacity(gatewayCapacity);
return this;
}
/**
*
* Specifies the size of the gateway's metadata cache.
*
*
* @param gatewayCapacity
* Specifies the size of the gateway's metadata cache.
* @return Returns a reference to this object so that method calls can be chained together.
* @see GatewayCapacity
*/
public DescribeGatewayInformationResult withGatewayCapacity(GatewayCapacity gatewayCapacity) {
this.gatewayCapacity = gatewayCapacity.toString();
return this;
}
/**
*
* A list of the metadata cache sizes that the gateway can support based on its current hardware specifications.
*
*
* @return A list of the metadata cache sizes that the gateway can support based on its current hardware
* specifications.
* @see GatewayCapacity
*/
public java.util.List getSupportedGatewayCapacities() {
if (supportedGatewayCapacities == null) {
supportedGatewayCapacities = new com.amazonaws.internal.SdkInternalList();
}
return supportedGatewayCapacities;
}
/**
*
* A list of the metadata cache sizes that the gateway can support based on its current hardware specifications.
*
*
* @param supportedGatewayCapacities
* A list of the metadata cache sizes that the gateway can support based on its current hardware
* specifications.
* @see GatewayCapacity
*/
public void setSupportedGatewayCapacities(java.util.Collection supportedGatewayCapacities) {
if (supportedGatewayCapacities == null) {
this.supportedGatewayCapacities = null;
return;
}
this.supportedGatewayCapacities = new com.amazonaws.internal.SdkInternalList(supportedGatewayCapacities);
}
/**
*
* A list of the metadata cache sizes that the gateway can support based on its current hardware specifications.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSupportedGatewayCapacities(java.util.Collection)} or
* {@link #withSupportedGatewayCapacities(java.util.Collection)} if you want to override the existing values.
*
*
* @param supportedGatewayCapacities
* A list of the metadata cache sizes that the gateway can support based on its current hardware
* specifications.
* @return Returns a reference to this object so that method calls can be chained together.
* @see GatewayCapacity
*/
public DescribeGatewayInformationResult withSupportedGatewayCapacities(String... supportedGatewayCapacities) {
if (this.supportedGatewayCapacities == null) {
setSupportedGatewayCapacities(new com.amazonaws.internal.SdkInternalList(supportedGatewayCapacities.length));
}
for (String ele : supportedGatewayCapacities) {
this.supportedGatewayCapacities.add(ele);
}
return this;
}
/**
*
* A list of the metadata cache sizes that the gateway can support based on its current hardware specifications.
*
*
* @param supportedGatewayCapacities
* A list of the metadata cache sizes that the gateway can support based on its current hardware
* specifications.
* @return Returns a reference to this object so that method calls can be chained together.
* @see GatewayCapacity
*/
public DescribeGatewayInformationResult withSupportedGatewayCapacities(java.util.Collection supportedGatewayCapacities) {
setSupportedGatewayCapacities(supportedGatewayCapacities);
return this;
}
/**
*
* A list of the metadata cache sizes that the gateway can support based on its current hardware specifications.
*
*
* @param supportedGatewayCapacities
* A list of the metadata cache sizes that the gateway can support based on its current hardware
* specifications.
* @return Returns a reference to this object so that method calls can be chained together.
* @see GatewayCapacity
*/
public DescribeGatewayInformationResult withSupportedGatewayCapacities(GatewayCapacity... supportedGatewayCapacities) {
com.amazonaws.internal.SdkInternalList supportedGatewayCapacitiesCopy = new com.amazonaws.internal.SdkInternalList(
supportedGatewayCapacities.length);
for (GatewayCapacity value : supportedGatewayCapacities) {
supportedGatewayCapacitiesCopy.add(value.toString());
}
if (getSupportedGatewayCapacities() == null) {
setSupportedGatewayCapacities(supportedGatewayCapacitiesCopy);
} else {
getSupportedGatewayCapacities().addAll(supportedGatewayCapacitiesCopy);
}
return this;
}
/**
*
* A unique identifier for the specific instance of the host platform running the gateway. This value is only
* available for certain host environments, and its format depends on the host environment type.
*
*
* @param hostEnvironmentId
* A unique identifier for the specific instance of the host platform running the gateway. This value is only
* available for certain host environments, and its format depends on the host environment type.
*/
public void setHostEnvironmentId(String hostEnvironmentId) {
this.hostEnvironmentId = hostEnvironmentId;
}
/**
*
* A unique identifier for the specific instance of the host platform running the gateway. This value is only
* available for certain host environments, and its format depends on the host environment type.
*
*
* @return A unique identifier for the specific instance of the host platform running the gateway. This value is
* only available for certain host environments, and its format depends on the host environment type.
*/
public String getHostEnvironmentId() {
return this.hostEnvironmentId;
}
/**
*
* A unique identifier for the specific instance of the host platform running the gateway. This value is only
* available for certain host environments, and its format depends on the host environment type.
*
*
* @param hostEnvironmentId
* A unique identifier for the specific instance of the host platform running the gateway. This value is only
* available for certain host environments, and its format depends on the host environment type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeGatewayInformationResult withHostEnvironmentId(String hostEnvironmentId) {
setHostEnvironmentId(hostEnvironmentId);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getGatewayARN() != null)
sb.append("GatewayARN: ").append(getGatewayARN()).append(",");
if (getGatewayId() != null)
sb.append("GatewayId: ").append(getGatewayId()).append(",");
if (getGatewayName() != null)
sb.append("GatewayName: ").append(getGatewayName()).append(",");
if (getGatewayTimezone() != null)
sb.append("GatewayTimezone: ").append(getGatewayTimezone()).append(",");
if (getGatewayState() != null)
sb.append("GatewayState: ").append(getGatewayState()).append(",");
if (getGatewayNetworkInterfaces() != null)
sb.append("GatewayNetworkInterfaces: ").append(getGatewayNetworkInterfaces()).append(",");
if (getGatewayType() != null)
sb.append("GatewayType: ").append(getGatewayType()).append(",");
if (getNextUpdateAvailabilityDate() != null)
sb.append("NextUpdateAvailabilityDate: ").append(getNextUpdateAvailabilityDate()).append(",");
if (getLastSoftwareUpdate() != null)
sb.append("LastSoftwareUpdate: ").append(getLastSoftwareUpdate()).append(",");
if (getEc2InstanceId() != null)
sb.append("Ec2InstanceId: ").append(getEc2InstanceId()).append(",");
if (getEc2InstanceRegion() != null)
sb.append("Ec2InstanceRegion: ").append(getEc2InstanceRegion()).append(",");
if (getTags() != null)
sb.append("Tags: ").append(getTags()).append(",");
if (getVPCEndpoint() != null)
sb.append("VPCEndpoint: ").append(getVPCEndpoint()).append(",");
if (getCloudWatchLogGroupARN() != null)
sb.append("CloudWatchLogGroupARN: ").append(getCloudWatchLogGroupARN()).append(",");
if (getHostEnvironment() != null)
sb.append("HostEnvironment: ").append(getHostEnvironment()).append(",");
if (getEndpointType() != null)
sb.append("EndpointType: ").append(getEndpointType()).append(",");
if (getSoftwareUpdatesEndDate() != null)
sb.append("SoftwareUpdatesEndDate: ").append(getSoftwareUpdatesEndDate()).append(",");
if (getDeprecationDate() != null)
sb.append("DeprecationDate: ").append(getDeprecationDate()).append(",");
if (getGatewayCapacity() != null)
sb.append("GatewayCapacity: ").append(getGatewayCapacity()).append(",");
if (getSupportedGatewayCapacities() != null)
sb.append("SupportedGatewayCapacities: ").append(getSupportedGatewayCapacities()).append(",");
if (getHostEnvironmentId() != null)
sb.append("HostEnvironmentId: ").append(getHostEnvironmentId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeGatewayInformationResult == false)
return false;
DescribeGatewayInformationResult other = (DescribeGatewayInformationResult) obj;
if (other.getGatewayARN() == null ^ this.getGatewayARN() == null)
return false;
if (other.getGatewayARN() != null && other.getGatewayARN().equals(this.getGatewayARN()) == false)
return false;
if (other.getGatewayId() == null ^ this.getGatewayId() == null)
return false;
if (other.getGatewayId() != null && other.getGatewayId().equals(this.getGatewayId()) == false)
return false;
if (other.getGatewayName() == null ^ this.getGatewayName() == null)
return false;
if (other.getGatewayName() != null && other.getGatewayName().equals(this.getGatewayName()) == false)
return false;
if (other.getGatewayTimezone() == null ^ this.getGatewayTimezone() == null)
return false;
if (other.getGatewayTimezone() != null && other.getGatewayTimezone().equals(this.getGatewayTimezone()) == false)
return false;
if (other.getGatewayState() == null ^ this.getGatewayState() == null)
return false;
if (other.getGatewayState() != null && other.getGatewayState().equals(this.getGatewayState()) == false)
return false;
if (other.getGatewayNetworkInterfaces() == null ^ this.getGatewayNetworkInterfaces() == null)
return false;
if (other.getGatewayNetworkInterfaces() != null && other.getGatewayNetworkInterfaces().equals(this.getGatewayNetworkInterfaces()) == false)
return false;
if (other.getGatewayType() == null ^ this.getGatewayType() == null)
return false;
if (other.getGatewayType() != null && other.getGatewayType().equals(this.getGatewayType()) == false)
return false;
if (other.getNextUpdateAvailabilityDate() == null ^ this.getNextUpdateAvailabilityDate() == null)
return false;
if (other.getNextUpdateAvailabilityDate() != null && other.getNextUpdateAvailabilityDate().equals(this.getNextUpdateAvailabilityDate()) == false)
return false;
if (other.getLastSoftwareUpdate() == null ^ this.getLastSoftwareUpdate() == null)
return false;
if (other.getLastSoftwareUpdate() != null && other.getLastSoftwareUpdate().equals(this.getLastSoftwareUpdate()) == false)
return false;
if (other.getEc2InstanceId() == null ^ this.getEc2InstanceId() == null)
return false;
if (other.getEc2InstanceId() != null && other.getEc2InstanceId().equals(this.getEc2InstanceId()) == false)
return false;
if (other.getEc2InstanceRegion() == null ^ this.getEc2InstanceRegion() == null)
return false;
if (other.getEc2InstanceRegion() != null && other.getEc2InstanceRegion().equals(this.getEc2InstanceRegion()) == false)
return false;
if (other.getTags() == null ^ this.getTags() == null)
return false;
if (other.getTags() != null && other.getTags().equals(this.getTags()) == false)
return false;
if (other.getVPCEndpoint() == null ^ this.getVPCEndpoint() == null)
return false;
if (other.getVPCEndpoint() != null && other.getVPCEndpoint().equals(this.getVPCEndpoint()) == false)
return false;
if (other.getCloudWatchLogGroupARN() == null ^ this.getCloudWatchLogGroupARN() == null)
return false;
if (other.getCloudWatchLogGroupARN() != null && other.getCloudWatchLogGroupARN().equals(this.getCloudWatchLogGroupARN()) == false)
return false;
if (other.getHostEnvironment() == null ^ this.getHostEnvironment() == null)
return false;
if (other.getHostEnvironment() != null && other.getHostEnvironment().equals(this.getHostEnvironment()) == false)
return false;
if (other.getEndpointType() == null ^ this.getEndpointType() == null)
return false;
if (other.getEndpointType() != null && other.getEndpointType().equals(this.getEndpointType()) == false)
return false;
if (other.getSoftwareUpdatesEndDate() == null ^ this.getSoftwareUpdatesEndDate() == null)
return false;
if (other.getSoftwareUpdatesEndDate() != null && other.getSoftwareUpdatesEndDate().equals(this.getSoftwareUpdatesEndDate()) == false)
return false;
if (other.getDeprecationDate() == null ^ this.getDeprecationDate() == null)
return false;
if (other.getDeprecationDate() != null && other.getDeprecationDate().equals(this.getDeprecationDate()) == false)
return false;
if (other.getGatewayCapacity() == null ^ this.getGatewayCapacity() == null)
return false;
if (other.getGatewayCapacity() != null && other.getGatewayCapacity().equals(this.getGatewayCapacity()) == false)
return false;
if (other.getSupportedGatewayCapacities() == null ^ this.getSupportedGatewayCapacities() == null)
return false;
if (other.getSupportedGatewayCapacities() != null && other.getSupportedGatewayCapacities().equals(this.getSupportedGatewayCapacities()) == false)
return false;
if (other.getHostEnvironmentId() == null ^ this.getHostEnvironmentId() == null)
return false;
if (other.getHostEnvironmentId() != null && other.getHostEnvironmentId().equals(this.getHostEnvironmentId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getGatewayARN() == null) ? 0 : getGatewayARN().hashCode());
hashCode = prime * hashCode + ((getGatewayId() == null) ? 0 : getGatewayId().hashCode());
hashCode = prime * hashCode + ((getGatewayName() == null) ? 0 : getGatewayName().hashCode());
hashCode = prime * hashCode + ((getGatewayTimezone() == null) ? 0 : getGatewayTimezone().hashCode());
hashCode = prime * hashCode + ((getGatewayState() == null) ? 0 : getGatewayState().hashCode());
hashCode = prime * hashCode + ((getGatewayNetworkInterfaces() == null) ? 0 : getGatewayNetworkInterfaces().hashCode());
hashCode = prime * hashCode + ((getGatewayType() == null) ? 0 : getGatewayType().hashCode());
hashCode = prime * hashCode + ((getNextUpdateAvailabilityDate() == null) ? 0 : getNextUpdateAvailabilityDate().hashCode());
hashCode = prime * hashCode + ((getLastSoftwareUpdate() == null) ? 0 : getLastSoftwareUpdate().hashCode());
hashCode = prime * hashCode + ((getEc2InstanceId() == null) ? 0 : getEc2InstanceId().hashCode());
hashCode = prime * hashCode + ((getEc2InstanceRegion() == null) ? 0 : getEc2InstanceRegion().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getVPCEndpoint() == null) ? 0 : getVPCEndpoint().hashCode());
hashCode = prime * hashCode + ((getCloudWatchLogGroupARN() == null) ? 0 : getCloudWatchLogGroupARN().hashCode());
hashCode = prime * hashCode + ((getHostEnvironment() == null) ? 0 : getHostEnvironment().hashCode());
hashCode = prime * hashCode + ((getEndpointType() == null) ? 0 : getEndpointType().hashCode());
hashCode = prime * hashCode + ((getSoftwareUpdatesEndDate() == null) ? 0 : getSoftwareUpdatesEndDate().hashCode());
hashCode = prime * hashCode + ((getDeprecationDate() == null) ? 0 : getDeprecationDate().hashCode());
hashCode = prime * hashCode + ((getGatewayCapacity() == null) ? 0 : getGatewayCapacity().hashCode());
hashCode = prime * hashCode + ((getSupportedGatewayCapacities() == null) ? 0 : getSupportedGatewayCapacities().hashCode());
hashCode = prime * hashCode + ((getHostEnvironmentId() == null) ? 0 : getHostEnvironmentId().hashCode());
return hashCode;
}
@Override
public DescribeGatewayInformationResult clone() {
try {
return (DescribeGatewayInformationResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}