All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.backupgateway.model.GatewayDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Backup Gateway module holds the client classes that are used for communicating with AWS Backup Gateway Service

There is a newer version: 1.12.772
Show newest version
/*
 * 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.backupgateway.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The details of gateway. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class GatewayDetails implements Serializable, Cloneable, StructuredPojo { /** *

* The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of * gateways for your account and Amazon Web Services Region. *

*/ private String gatewayArn; /** *

* The display name of the gateway. *

*/ private String gatewayDisplayName; /** *

* The type of the gateway type. *

*/ private String gatewayType; /** *

* The hypervisor ID of the gateway. *

*/ private String hypervisorId; /** *

* Details showing the last time Backup gateway communicated with the cloud, in Unix format and UTC time. *

*/ private java.util.Date lastSeenTime; /** *

* Returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are * in terms of the gateway's time zone. Can be weekly or monthly. *

*/ private MaintenanceStartTime maintenanceStartTime; /** *

* Details showing the next update availability time of the gateway. *

*/ private java.util.Date nextUpdateAvailabilityTime; /** *

* The DNS name for the virtual private cloud (VPC) endpoint the gateway uses to connect to the cloud for backup * gateway. *

*/ private String vpcEndpoint; /** *

* The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of * gateways for your account and Amazon Web Services Region. *

* * @param gatewayArn * The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a * list of gateways for your account and Amazon Web Services Region. */ public void setGatewayArn(String gatewayArn) { this.gatewayArn = gatewayArn; } /** *

* The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of * gateways for your account and Amazon Web Services Region. *

* * @return The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a * list of gateways for your account and Amazon Web Services Region. */ public String getGatewayArn() { return this.gatewayArn; } /** *

* The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of * gateways for your account and Amazon Web Services Region. *

* * @param gatewayArn * The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a * list of gateways for your account and Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public GatewayDetails withGatewayArn(String gatewayArn) { setGatewayArn(gatewayArn); return this; } /** *

* The display name of the gateway. *

* * @param gatewayDisplayName * The display name of the gateway. */ public void setGatewayDisplayName(String gatewayDisplayName) { this.gatewayDisplayName = gatewayDisplayName; } /** *

* The display name of the gateway. *

* * @return The display name of the gateway. */ public String getGatewayDisplayName() { return this.gatewayDisplayName; } /** *

* The display name of the gateway. *

* * @param gatewayDisplayName * The display name of the gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public GatewayDetails withGatewayDisplayName(String gatewayDisplayName) { setGatewayDisplayName(gatewayDisplayName); return this; } /** *

* The type of the gateway type. *

* * @param gatewayType * The type of the gateway type. * @see GatewayType */ public void setGatewayType(String gatewayType) { this.gatewayType = gatewayType; } /** *

* The type of the gateway type. *

* * @return The type of the gateway type. * @see GatewayType */ public String getGatewayType() { return this.gatewayType; } /** *

* The type of the gateway type. *

* * @param gatewayType * The type of the gateway type. * @return Returns a reference to this object so that method calls can be chained together. * @see GatewayType */ public GatewayDetails withGatewayType(String gatewayType) { setGatewayType(gatewayType); return this; } /** *

* The type of the gateway type. *

* * @param gatewayType * The type of the gateway type. * @return Returns a reference to this object so that method calls can be chained together. * @see GatewayType */ public GatewayDetails withGatewayType(GatewayType gatewayType) { this.gatewayType = gatewayType.toString(); return this; } /** *

* The hypervisor ID of the gateway. *

* * @param hypervisorId * The hypervisor ID of the gateway. */ public void setHypervisorId(String hypervisorId) { this.hypervisorId = hypervisorId; } /** *

* The hypervisor ID of the gateway. *

* * @return The hypervisor ID of the gateway. */ public String getHypervisorId() { return this.hypervisorId; } /** *

* The hypervisor ID of the gateway. *

* * @param hypervisorId * The hypervisor ID of the gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public GatewayDetails withHypervisorId(String hypervisorId) { setHypervisorId(hypervisorId); return this; } /** *

* Details showing the last time Backup gateway communicated with the cloud, in Unix format and UTC time. *

* * @param lastSeenTime * Details showing the last time Backup gateway communicated with the cloud, in Unix format and UTC time. */ public void setLastSeenTime(java.util.Date lastSeenTime) { this.lastSeenTime = lastSeenTime; } /** *

* Details showing the last time Backup gateway communicated with the cloud, in Unix format and UTC time. *

* * @return Details showing the last time Backup gateway communicated with the cloud, in Unix format and UTC time. */ public java.util.Date getLastSeenTime() { return this.lastSeenTime; } /** *

* Details showing the last time Backup gateway communicated with the cloud, in Unix format and UTC time. *

* * @param lastSeenTime * Details showing the last time Backup gateway communicated with the cloud, in Unix format and UTC time. * @return Returns a reference to this object so that method calls can be chained together. */ public GatewayDetails withLastSeenTime(java.util.Date lastSeenTime) { setLastSeenTime(lastSeenTime); return this; } /** *

* Returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are * in terms of the gateway's time zone. Can be weekly or monthly. *

* * @param maintenanceStartTime * Returns your gateway's weekly maintenance start time including the day and time of the week. Note that * values are in terms of the gateway's time zone. Can be weekly or monthly. */ public void setMaintenanceStartTime(MaintenanceStartTime maintenanceStartTime) { this.maintenanceStartTime = maintenanceStartTime; } /** *

* Returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are * in terms of the gateway's time zone. Can be weekly or monthly. *

* * @return Returns your gateway's weekly maintenance start time including the day and time of the week. Note that * values are in terms of the gateway's time zone. Can be weekly or monthly. */ public MaintenanceStartTime getMaintenanceStartTime() { return this.maintenanceStartTime; } /** *

* Returns your gateway's weekly maintenance start time including the day and time of the week. Note that values are * in terms of the gateway's time zone. Can be weekly or monthly. *

* * @param maintenanceStartTime * Returns your gateway's weekly maintenance start time including the day and time of the week. Note that * values are in terms of the gateway's time zone. Can be weekly or monthly. * @return Returns a reference to this object so that method calls can be chained together. */ public GatewayDetails withMaintenanceStartTime(MaintenanceStartTime maintenanceStartTime) { setMaintenanceStartTime(maintenanceStartTime); return this; } /** *

* Details showing the next update availability time of the gateway. *

* * @param nextUpdateAvailabilityTime * Details showing the next update availability time of the gateway. */ public void setNextUpdateAvailabilityTime(java.util.Date nextUpdateAvailabilityTime) { this.nextUpdateAvailabilityTime = nextUpdateAvailabilityTime; } /** *

* Details showing the next update availability time of the gateway. *

* * @return Details showing the next update availability time of the gateway. */ public java.util.Date getNextUpdateAvailabilityTime() { return this.nextUpdateAvailabilityTime; } /** *

* Details showing the next update availability time of the gateway. *

* * @param nextUpdateAvailabilityTime * Details showing the next update availability time of the gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public GatewayDetails withNextUpdateAvailabilityTime(java.util.Date nextUpdateAvailabilityTime) { setNextUpdateAvailabilityTime(nextUpdateAvailabilityTime); return this; } /** *

* The DNS name for the virtual private cloud (VPC) endpoint the gateway uses to connect to the cloud for backup * gateway. *

* * @param vpcEndpoint * The DNS name for the virtual private cloud (VPC) endpoint the gateway uses to connect to the cloud for * backup gateway. */ public void setVpcEndpoint(String vpcEndpoint) { this.vpcEndpoint = vpcEndpoint; } /** *

* The DNS name for the virtual private cloud (VPC) endpoint the gateway uses to connect to the cloud for backup * gateway. *

* * @return The DNS name for the virtual private cloud (VPC) endpoint the gateway uses to connect to the cloud for * backup gateway. */ public String getVpcEndpoint() { return this.vpcEndpoint; } /** *

* The DNS name for the virtual private cloud (VPC) endpoint the gateway uses to connect to the cloud for backup * gateway. *

* * @param vpcEndpoint * The DNS name for the virtual private cloud (VPC) endpoint the gateway uses to connect to the cloud for * backup gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public GatewayDetails withVpcEndpoint(String vpcEndpoint) { setVpcEndpoint(vpcEndpoint); 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 (getGatewayDisplayName() != null) sb.append("GatewayDisplayName: ").append(getGatewayDisplayName()).append(","); if (getGatewayType() != null) sb.append("GatewayType: ").append(getGatewayType()).append(","); if (getHypervisorId() != null) sb.append("HypervisorId: ").append(getHypervisorId()).append(","); if (getLastSeenTime() != null) sb.append("LastSeenTime: ").append(getLastSeenTime()).append(","); if (getMaintenanceStartTime() != null) sb.append("MaintenanceStartTime: ").append(getMaintenanceStartTime()).append(","); if (getNextUpdateAvailabilityTime() != null) sb.append("NextUpdateAvailabilityTime: ").append(getNextUpdateAvailabilityTime()).append(","); if (getVpcEndpoint() != null) sb.append("VpcEndpoint: ").append(getVpcEndpoint()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GatewayDetails == false) return false; GatewayDetails other = (GatewayDetails) obj; if (other.getGatewayArn() == null ^ this.getGatewayArn() == null) return false; if (other.getGatewayArn() != null && other.getGatewayArn().equals(this.getGatewayArn()) == false) return false; if (other.getGatewayDisplayName() == null ^ this.getGatewayDisplayName() == null) return false; if (other.getGatewayDisplayName() != null && other.getGatewayDisplayName().equals(this.getGatewayDisplayName()) == 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.getHypervisorId() == null ^ this.getHypervisorId() == null) return false; if (other.getHypervisorId() != null && other.getHypervisorId().equals(this.getHypervisorId()) == false) return false; if (other.getLastSeenTime() == null ^ this.getLastSeenTime() == null) return false; if (other.getLastSeenTime() != null && other.getLastSeenTime().equals(this.getLastSeenTime()) == false) return false; if (other.getMaintenanceStartTime() == null ^ this.getMaintenanceStartTime() == null) return false; if (other.getMaintenanceStartTime() != null && other.getMaintenanceStartTime().equals(this.getMaintenanceStartTime()) == false) return false; if (other.getNextUpdateAvailabilityTime() == null ^ this.getNextUpdateAvailabilityTime() == null) return false; if (other.getNextUpdateAvailabilityTime() != null && other.getNextUpdateAvailabilityTime().equals(this.getNextUpdateAvailabilityTime()) == false) return false; if (other.getVpcEndpoint() == null ^ this.getVpcEndpoint() == null) return false; if (other.getVpcEndpoint() != null && other.getVpcEndpoint().equals(this.getVpcEndpoint()) == 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 + ((getGatewayDisplayName() == null) ? 0 : getGatewayDisplayName().hashCode()); hashCode = prime * hashCode + ((getGatewayType() == null) ? 0 : getGatewayType().hashCode()); hashCode = prime * hashCode + ((getHypervisorId() == null) ? 0 : getHypervisorId().hashCode()); hashCode = prime * hashCode + ((getLastSeenTime() == null) ? 0 : getLastSeenTime().hashCode()); hashCode = prime * hashCode + ((getMaintenanceStartTime() == null) ? 0 : getMaintenanceStartTime().hashCode()); hashCode = prime * hashCode + ((getNextUpdateAvailabilityTime() == null) ? 0 : getNextUpdateAvailabilityTime().hashCode()); hashCode = prime * hashCode + ((getVpcEndpoint() == null) ? 0 : getVpcEndpoint().hashCode()); return hashCode; } @Override public GatewayDetails clone() { try { return (GatewayDetails) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.backupgateway.model.transform.GatewayDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy