/* * 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.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The name, ARN, CreationTime
, FeatureGroup
values, LastUpdatedTime
and
* EnableOnlineStorage
status of a FeatureGroup
.
*
* The name of FeatureGroup
.
*
* Unique identifier for the FeatureGroup
.
*
* A timestamp indicating the time of creation time of the FeatureGroup
.
*
* The status of a FeatureGroup. The status can be any of the following: Creating
, Created
, CreateFail
, Deleting
or DetailFail
.
*
* Notifies you if replicating data into the OfflineStore
has failed. Returns either:
* Active
or Blocked
.
*
* The name of FeatureGroup
.
*
FeatureGroup
.
*/
public void setFeatureGroupName(String featureGroupName) {
this.featureGroupName = featureGroupName;
}
/**
*
* The name of FeatureGroup
.
*
FeatureGroup
.
*/
public String getFeatureGroupName() {
return this.featureGroupName;
}
/**
*
* The name of FeatureGroup
.
*
FeatureGroup
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FeatureGroupSummary withFeatureGroupName(String featureGroupName) {
setFeatureGroupName(featureGroupName);
return this;
}
/**
*
* Unique identifier for the FeatureGroup
.
*
FeatureGroup
.
*/
public void setFeatureGroupArn(String featureGroupArn) {
this.featureGroupArn = featureGroupArn;
}
/**
*
* Unique identifier for the FeatureGroup
.
*
FeatureGroup
.
*/
public String getFeatureGroupArn() {
return this.featureGroupArn;
}
/**
*
* Unique identifier for the FeatureGroup
.
*
FeatureGroup
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FeatureGroupSummary withFeatureGroupArn(String featureGroupArn) {
setFeatureGroupArn(featureGroupArn);
return this;
}
/**
*
* A timestamp indicating the time of creation time of the FeatureGroup
.
*
FeatureGroup
.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* A timestamp indicating the time of creation time of the FeatureGroup
.
*
FeatureGroup
.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* A timestamp indicating the time of creation time of the FeatureGroup
.
*
FeatureGroup
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FeatureGroupSummary withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The status of a FeatureGroup. The status can be any of the following: Creating
, Created
, CreateFail
, Deleting
or DetailFail
.
*
Creating
,
* Created
, CreateFail
, Deleting
or DetailFail
.
* @see FeatureGroupStatus
*/
public void setFeatureGroupStatus(String featureGroupStatus) {
this.featureGroupStatus = featureGroupStatus;
}
/**
*
* The status of a FeatureGroup. The status can be any of the following: Creating
, Created
, CreateFail
, Deleting
or DetailFail
.
*
Creating
,
* Created
, CreateFail
, Deleting
or DetailFail
.
* @see FeatureGroupStatus
*/
public String getFeatureGroupStatus() {
return this.featureGroupStatus;
}
/**
*
* The status of a FeatureGroup. The status can be any of the following: Creating
, Created
, CreateFail
, Deleting
or DetailFail
.
*
Creating
,
* Created
, CreateFail
, Deleting
or DetailFail
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureGroupStatus
*/
public FeatureGroupSummary withFeatureGroupStatus(String featureGroupStatus) {
setFeatureGroupStatus(featureGroupStatus);
return this;
}
/**
*
* The status of a FeatureGroup. The status can be any of the following: Creating
, Created
, CreateFail
, Deleting
or DetailFail
.
*
Creating
,
* Created
, CreateFail
, Deleting
or DetailFail
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see FeatureGroupStatus
*/
public FeatureGroupSummary withFeatureGroupStatus(FeatureGroupStatus featureGroupStatus) {
this.featureGroupStatus = featureGroupStatus.toString();
return this;
}
/**
*
* Notifies you if replicating data into the OfflineStore
has failed. Returns either:
* Active
or Blocked
.
*
OfflineStore
has failed. Returns either:
* Active
or Blocked
.
*/
public void setOfflineStoreStatus(OfflineStoreStatus offlineStoreStatus) {
this.offlineStoreStatus = offlineStoreStatus;
}
/**
*
* Notifies you if replicating data into the OfflineStore
has failed. Returns either:
* Active
or Blocked
.
*
OfflineStore
has failed. Returns either:
* Active
or Blocked
.
*/
public OfflineStoreStatus getOfflineStoreStatus() {
return this.offlineStoreStatus;
}
/**
*
* Notifies you if replicating data into the OfflineStore
has failed. Returns either:
* Active
or Blocked
.
*
OfflineStore
has failed. Returns either:
* Active
or Blocked
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public FeatureGroupSummary withOfflineStoreStatus(OfflineStoreStatus offlineStoreStatus) {
setOfflineStoreStatus(offlineStoreStatus);
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 (getFeatureGroupName() != null)
sb.append("FeatureGroupName: ").append(getFeatureGroupName()).append(",");
if (getFeatureGroupArn() != null)
sb.append("FeatureGroupArn: ").append(getFeatureGroupArn()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getFeatureGroupStatus() != null)
sb.append("FeatureGroupStatus: ").append(getFeatureGroupStatus()).append(",");
if (getOfflineStoreStatus() != null)
sb.append("OfflineStoreStatus: ").append(getOfflineStoreStatus());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof FeatureGroupSummary == false)
return false;
FeatureGroupSummary other = (FeatureGroupSummary) obj;
if (other.getFeatureGroupName() == null ^ this.getFeatureGroupName() == null)
return false;
if (other.getFeatureGroupName() != null && other.getFeatureGroupName().equals(this.getFeatureGroupName()) == false)
return false;
if (other.getFeatureGroupArn() == null ^ this.getFeatureGroupArn() == null)
return false;
if (other.getFeatureGroupArn() != null && other.getFeatureGroupArn().equals(this.getFeatureGroupArn()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getFeatureGroupStatus() == null ^ this.getFeatureGroupStatus() == null)
return false;
if (other.getFeatureGroupStatus() != null && other.getFeatureGroupStatus().equals(this.getFeatureGroupStatus()) == false)
return false;
if (other.getOfflineStoreStatus() == null ^ this.getOfflineStoreStatus() == null)
return false;
if (other.getOfflineStoreStatus() != null && other.getOfflineStoreStatus().equals(this.getOfflineStoreStatus()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getFeatureGroupName() == null) ? 0 : getFeatureGroupName().hashCode());
hashCode = prime * hashCode + ((getFeatureGroupArn() == null) ? 0 : getFeatureGroupArn().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getFeatureGroupStatus() == null) ? 0 : getFeatureGroupStatus().hashCode());
hashCode = prime * hashCode + ((getOfflineStoreStatus() == null) ? 0 : getOfflineStoreStatus().hashCode());
return hashCode;
}
@Override
public FeatureGroupSummary clone() {
try {
return (FeatureGroupSummary) 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.sagemaker.model.transform.FeatureGroupSummaryMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}