/* * 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.private5g.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about an order. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Order implements Serializable, Cloneable, StructuredPojo { /** ** The acknowledgement status of the order. *
*/ private String acknowledgmentStatus; /** ** The creation time of the order. *
*/ private java.util.Date createdAt; /** ** The Amazon Resource Name (ARN) of the network associated with this order. *
*/ private String networkArn; /** ** The Amazon Resource Name (ARN) of the network site associated with this order. *
*/ private String networkSiteArn; /** ** The Amazon Resource Name (ARN) of the order. *
*/ private String orderArn; /** ** A list of the network resources placed in the order. *
*/ private java.util.List* The shipping address of the order. *
*/ private Address shippingAddress; /** ** The tracking information of the order. *
*/ private java.util.List* The acknowledgement status of the order. *
* * @param acknowledgmentStatus * The acknowledgement status of the order. * @see AcknowledgmentStatus */ public void setAcknowledgmentStatus(String acknowledgmentStatus) { this.acknowledgmentStatus = acknowledgmentStatus; } /** ** The acknowledgement status of the order. *
* * @return The acknowledgement status of the order. * @see AcknowledgmentStatus */ public String getAcknowledgmentStatus() { return this.acknowledgmentStatus; } /** ** The acknowledgement status of the order. *
* * @param acknowledgmentStatus * The acknowledgement status of the order. * @return Returns a reference to this object so that method calls can be chained together. * @see AcknowledgmentStatus */ public Order withAcknowledgmentStatus(String acknowledgmentStatus) { setAcknowledgmentStatus(acknowledgmentStatus); return this; } /** ** The acknowledgement status of the order. *
* * @param acknowledgmentStatus * The acknowledgement status of the order. * @return Returns a reference to this object so that method calls can be chained together. * @see AcknowledgmentStatus */ public Order withAcknowledgmentStatus(AcknowledgmentStatus acknowledgmentStatus) { this.acknowledgmentStatus = acknowledgmentStatus.toString(); return this; } /** ** The creation time of the order. *
* * @param createdAt * The creation time of the order. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** ** The creation time of the order. *
* * @return The creation time of the order. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** ** The creation time of the order. *
* * @param createdAt * The creation time of the order. * @return Returns a reference to this object so that method calls can be chained together. */ public Order withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** ** The Amazon Resource Name (ARN) of the network associated with this order. *
* * @param networkArn * The Amazon Resource Name (ARN) of the network associated with this order. */ public void setNetworkArn(String networkArn) { this.networkArn = networkArn; } /** ** The Amazon Resource Name (ARN) of the network associated with this order. *
* * @return The Amazon Resource Name (ARN) of the network associated with this order. */ public String getNetworkArn() { return this.networkArn; } /** ** The Amazon Resource Name (ARN) of the network associated with this order. *
* * @param networkArn * The Amazon Resource Name (ARN) of the network associated with this order. * @return Returns a reference to this object so that method calls can be chained together. */ public Order withNetworkArn(String networkArn) { setNetworkArn(networkArn); return this; } /** ** The Amazon Resource Name (ARN) of the network site associated with this order. *
* * @param networkSiteArn * The Amazon Resource Name (ARN) of the network site associated with this order. */ public void setNetworkSiteArn(String networkSiteArn) { this.networkSiteArn = networkSiteArn; } /** ** The Amazon Resource Name (ARN) of the network site associated with this order. *
* * @return The Amazon Resource Name (ARN) of the network site associated with this order. */ public String getNetworkSiteArn() { return this.networkSiteArn; } /** ** The Amazon Resource Name (ARN) of the network site associated with this order. *
* * @param networkSiteArn * The Amazon Resource Name (ARN) of the network site associated with this order. * @return Returns a reference to this object so that method calls can be chained together. */ public Order withNetworkSiteArn(String networkSiteArn) { setNetworkSiteArn(networkSiteArn); return this; } /** ** The Amazon Resource Name (ARN) of the order. *
* * @param orderArn * The Amazon Resource Name (ARN) of the order. */ public void setOrderArn(String orderArn) { this.orderArn = orderArn; } /** ** The Amazon Resource Name (ARN) of the order. *
* * @return The Amazon Resource Name (ARN) of the order. */ public String getOrderArn() { return this.orderArn; } /** ** The Amazon Resource Name (ARN) of the order. *
* * @param orderArn * The Amazon Resource Name (ARN) of the order. * @return Returns a reference to this object so that method calls can be chained together. */ public Order withOrderArn(String orderArn) { setOrderArn(orderArn); return this; } /** ** A list of the network resources placed in the order. *
* * @return A list of the network resources placed in the order. */ public java.util.List* A list of the network resources placed in the order. *
* * @param orderedResources * A list of the network resources placed in the order. */ public void setOrderedResources(java.util.Collection* A list of the network resources placed in the order. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setOrderedResources(java.util.Collection)} or {@link #withOrderedResources(java.util.Collection)} if you * want to override the existing values. *
* * @param orderedResources * A list of the network resources placed in the order. * @return Returns a reference to this object so that method calls can be chained together. */ public Order withOrderedResources(OrderedResourceDefinition... orderedResources) { if (this.orderedResources == null) { setOrderedResources(new java.util.ArrayList* A list of the network resources placed in the order. *
* * @param orderedResources * A list of the network resources placed in the order. * @return Returns a reference to this object so that method calls can be chained together. */ public Order withOrderedResources(java.util.Collection* The shipping address of the order. *
* * @param shippingAddress * The shipping address of the order. */ public void setShippingAddress(Address shippingAddress) { this.shippingAddress = shippingAddress; } /** ** The shipping address of the order. *
* * @return The shipping address of the order. */ public Address getShippingAddress() { return this.shippingAddress; } /** ** The shipping address of the order. *
* * @param shippingAddress * The shipping address of the order. * @return Returns a reference to this object so that method calls can be chained together. */ public Order withShippingAddress(Address shippingAddress) { setShippingAddress(shippingAddress); return this; } /** ** The tracking information of the order. *
* * @return The tracking information of the order. */ public java.util.List* The tracking information of the order. *
* * @param trackingInformation * The tracking information of the order. */ public void setTrackingInformation(java.util.Collection* The tracking information of the order. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTrackingInformation(java.util.Collection)} or {@link #withTrackingInformation(java.util.Collection)} * if you want to override the existing values. *
* * @param trackingInformation * The tracking information of the order. * @return Returns a reference to this object so that method calls can be chained together. */ public Order withTrackingInformation(TrackingInformation... trackingInformation) { if (this.trackingInformation == null) { setTrackingInformation(new java.util.ArrayList* The tracking information of the order. *
* * @param trackingInformation * The tracking information of the order. * @return Returns a reference to this object so that method calls can be chained together. */ public Order withTrackingInformation(java.util.Collection