/* * 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.opensearch.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Information about an Availability Zone on a domain. *

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

* The name of the Availability Zone. *

*/ private String availabilityZoneName; /** *

* The current state of the Availability Zone. Current options are Active and StandBy. *

* */ private String zoneStatus; /** *

* The total number of data nodes configured in the Availability Zone. *

*/ private String configuredDataNodeCount; /** *

* The number of data nodes active in the Availability Zone. *

*/ private String availableDataNodeCount; /** *

* The total number of primary and replica shards in the Availability Zone. *

*/ private String totalShards; /** *

* The total number of primary and replica shards that aren't allocated to any of the nodes in the Availability * Zone. *

*/ private String totalUnAssignedShards; /** *

* The name of the Availability Zone. *

* * @param availabilityZoneName * The name of the Availability Zone. */ public void setAvailabilityZoneName(String availabilityZoneName) { this.availabilityZoneName = availabilityZoneName; } /** *

* The name of the Availability Zone. *

* * @return The name of the Availability Zone. */ public String getAvailabilityZoneName() { return this.availabilityZoneName; } /** *

* The name of the Availability Zone. *

* * @param availabilityZoneName * The name of the Availability Zone. * @return Returns a reference to this object so that method calls can be chained together. */ public AvailabilityZoneInfo withAvailabilityZoneName(String availabilityZoneName) { setAvailabilityZoneName(availabilityZoneName); return this; } /** *

* The current state of the Availability Zone. Current options are Active and StandBy. *

* * * @param zoneStatus * The current state of the Availability Zone. Current options are Active and * StandBy.

*