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

com.amazonaws.services.b2bi.model.ProfileSummary Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS B2B Data Interchange module holds the client classes that are used for communicating with AWS B2B Data Interchange Service

The newest version!
/*
 * Copyright 2019-2024 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.b2bi.model;

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

/**
 * 

* Contains the details for a profile. A profile is the mechanism used to create the concept of a private network. *

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

* Returns the unique, system-generated identifier for the profile. *

*/ private String profileId; /** *

* Returns the display name for profile. *

*/ private String name; /** *

* Returns the name for the business associated with this profile. *

*/ private String businessName; /** *

* Specifies whether or not logging is enabled for this profile. *

*/ private String logging; /** *

* Returns the name of the logging group. *

*/ private String logGroupName; /** *

* Returns the timestamp for creation date and time of the profile. *

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

* Returns the timestamp that identifies the most recent date and time that the profile was modified. *

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

* Returns the unique, system-generated identifier for the profile. *

* * @param profileId * Returns the unique, system-generated identifier for the profile. */ public void setProfileId(String profileId) { this.profileId = profileId; } /** *

* Returns the unique, system-generated identifier for the profile. *

* * @return Returns the unique, system-generated identifier for the profile. */ public String getProfileId() { return this.profileId; } /** *

* Returns the unique, system-generated identifier for the profile. *

* * @param profileId * Returns the unique, system-generated identifier for the profile. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfileSummary withProfileId(String profileId) { setProfileId(profileId); return this; } /** *

* Returns the display name for profile. *

* * @param name * Returns the display name for profile. */ public void setName(String name) { this.name = name; } /** *

* Returns the display name for profile. *

* * @return Returns the display name for profile. */ public String getName() { return this.name; } /** *

* Returns the display name for profile. *

* * @param name * Returns the display name for profile. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfileSummary withName(String name) { setName(name); return this; } /** *

* Returns the name for the business associated with this profile. *

* * @param businessName * Returns the name for the business associated with this profile. */ public void setBusinessName(String businessName) { this.businessName = businessName; } /** *

* Returns the name for the business associated with this profile. *

* * @return Returns the name for the business associated with this profile. */ public String getBusinessName() { return this.businessName; } /** *

* Returns the name for the business associated with this profile. *

* * @param businessName * Returns the name for the business associated with this profile. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfileSummary withBusinessName(String businessName) { setBusinessName(businessName); return this; } /** *

* Specifies whether or not logging is enabled for this profile. *

* * @param logging * Specifies whether or not logging is enabled for this profile. * @see Logging */ public void setLogging(String logging) { this.logging = logging; } /** *

* Specifies whether or not logging is enabled for this profile. *

* * @return Specifies whether or not logging is enabled for this profile. * @see Logging */ public String getLogging() { return this.logging; } /** *

* Specifies whether or not logging is enabled for this profile. *

* * @param logging * Specifies whether or not logging is enabled for this profile. * @return Returns a reference to this object so that method calls can be chained together. * @see Logging */ public ProfileSummary withLogging(String logging) { setLogging(logging); return this; } /** *

* Specifies whether or not logging is enabled for this profile. *

* * @param logging * Specifies whether or not logging is enabled for this profile. * @return Returns a reference to this object so that method calls can be chained together. * @see Logging */ public ProfileSummary withLogging(Logging logging) { this.logging = logging.toString(); return this; } /** *

* Returns the name of the logging group. *

* * @param logGroupName * Returns the name of the logging group. */ public void setLogGroupName(String logGroupName) { this.logGroupName = logGroupName; } /** *

* Returns the name of the logging group. *

* * @return Returns the name of the logging group. */ public String getLogGroupName() { return this.logGroupName; } /** *

* Returns the name of the logging group. *

* * @param logGroupName * Returns the name of the logging group. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfileSummary withLogGroupName(String logGroupName) { setLogGroupName(logGroupName); return this; } /** *

* Returns the timestamp for creation date and time of the profile. *

* * @param createdAt * Returns the timestamp for creation date and time of the profile. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* Returns the timestamp for creation date and time of the profile. *

* * @return Returns the timestamp for creation date and time of the profile. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* Returns the timestamp for creation date and time of the profile. *

* * @param createdAt * Returns the timestamp for creation date and time of the profile. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfileSummary withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* Returns the timestamp that identifies the most recent date and time that the profile was modified. *

* * @param modifiedAt * Returns the timestamp that identifies the most recent date and time that the profile was modified. */ public void setModifiedAt(java.util.Date modifiedAt) { this.modifiedAt = modifiedAt; } /** *

* Returns the timestamp that identifies the most recent date and time that the profile was modified. *

* * @return Returns the timestamp that identifies the most recent date and time that the profile was modified. */ public java.util.Date getModifiedAt() { return this.modifiedAt; } /** *

* Returns the timestamp that identifies the most recent date and time that the profile was modified. *

* * @param modifiedAt * Returns the timestamp that identifies the most recent date and time that the profile was modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ProfileSummary withModifiedAt(java.util.Date modifiedAt) { setModifiedAt(modifiedAt); 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 (getProfileId() != null) sb.append("ProfileId: ").append(getProfileId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getBusinessName() != null) sb.append("BusinessName: ").append(getBusinessName()).append(","); if (getLogging() != null) sb.append("Logging: ").append(getLogging()).append(","); if (getLogGroupName() != null) sb.append("LogGroupName: ").append(getLogGroupName()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getModifiedAt() != null) sb.append("ModifiedAt: ").append(getModifiedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ProfileSummary == false) return false; ProfileSummary other = (ProfileSummary) obj; if (other.getProfileId() == null ^ this.getProfileId() == null) return false; if (other.getProfileId() != null && other.getProfileId().equals(this.getProfileId()) == false) return false; if (other.getName() == null ^ this.getName() == null) return false; if (other.getName() != null && other.getName().equals(this.getName()) == false) return false; if (other.getBusinessName() == null ^ this.getBusinessName() == null) return false; if (other.getBusinessName() != null && other.getBusinessName().equals(this.getBusinessName()) == false) return false; if (other.getLogging() == null ^ this.getLogging() == null) return false; if (other.getLogging() != null && other.getLogging().equals(this.getLogging()) == false) return false; if (other.getLogGroupName() == null ^ this.getLogGroupName() == null) return false; if (other.getLogGroupName() != null && other.getLogGroupName().equals(this.getLogGroupName()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getModifiedAt() == null ^ this.getModifiedAt() == null) return false; if (other.getModifiedAt() != null && other.getModifiedAt().equals(this.getModifiedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getProfileId() == null) ? 0 : getProfileId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getBusinessName() == null) ? 0 : getBusinessName().hashCode()); hashCode = prime * hashCode + ((getLogging() == null) ? 0 : getLogging().hashCode()); hashCode = prime * hashCode + ((getLogGroupName() == null) ? 0 : getLogGroupName().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getModifiedAt() == null) ? 0 : getModifiedAt().hashCode()); return hashCode; } @Override public ProfileSummary clone() { try { return (ProfileSummary) 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.b2bi.model.transform.ProfileSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy