/* * 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.transfer.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The details for a local or partner AS2 profile. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DescribedProfile implements Serializable, Cloneable, StructuredPojo { /** ** The unique Amazon Resource Name (ARN) for the profile. *
*/ private String arn; /** ** A unique identifier for the local or partner AS2 profile. *
*/ private String profileId; /** *
* Indicates whether to list only LOCAL
type profiles or only PARTNER
type profiles. If
* not supplied in the request, the command lists all types of profiles.
*
* The As2Id
is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the
* AS2-From
header for the AS2 messages sent from the partner. For outbound connectors, this is the
* AS2-To
header for the AS2 messages sent to the partner using the StartFileTransfer
API
* operation. This ID cannot include spaces.
*
* An array of identifiers for the imported certificates. You use this identifier for working with profiles and * partner profiles. *
*/ private java.util.List* Key-value pairs that can be used to group and search for profiles. *
*/ private java.util.List* The unique Amazon Resource Name (ARN) for the profile. *
* * @param arn * The unique Amazon Resource Name (ARN) for the profile. */ public void setArn(String arn) { this.arn = arn; } /** ** The unique Amazon Resource Name (ARN) for the profile. *
* * @return The unique Amazon Resource Name (ARN) for the profile. */ public String getArn() { return this.arn; } /** ** The unique Amazon Resource Name (ARN) for the profile. *
* * @param arn * The unique Amazon Resource Name (ARN) for the profile. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedProfile withArn(String arn) { setArn(arn); return this; } /** ** A unique identifier for the local or partner AS2 profile. *
* * @param profileId * A unique identifier for the local or partner AS2 profile. */ public void setProfileId(String profileId) { this.profileId = profileId; } /** ** A unique identifier for the local or partner AS2 profile. *
* * @return A unique identifier for the local or partner AS2 profile. */ public String getProfileId() { return this.profileId; } /** ** A unique identifier for the local or partner AS2 profile. *
* * @param profileId * A unique identifier for the local or partner AS2 profile. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedProfile withProfileId(String profileId) { setProfileId(profileId); return this; } /** *
* Indicates whether to list only LOCAL
type profiles or only PARTNER
type profiles. If
* not supplied in the request, the command lists all types of profiles.
*
LOCAL
type profiles or only PARTNER
type
* profiles. If not supplied in the request, the command lists all types of profiles.
* @see ProfileType
*/
public void setProfileType(String profileType) {
this.profileType = profileType;
}
/**
*
* Indicates whether to list only LOCAL
type profiles or only PARTNER
type profiles. If
* not supplied in the request, the command lists all types of profiles.
*
LOCAL
type profiles or only PARTNER
type
* profiles. If not supplied in the request, the command lists all types of profiles.
* @see ProfileType
*/
public String getProfileType() {
return this.profileType;
}
/**
*
* Indicates whether to list only LOCAL
type profiles or only PARTNER
type profiles. If
* not supplied in the request, the command lists all types of profiles.
*
LOCAL
type profiles or only PARTNER
type
* profiles. If not supplied in the request, the command lists all types of profiles.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ProfileType
*/
public DescribedProfile withProfileType(String profileType) {
setProfileType(profileType);
return this;
}
/**
*
* Indicates whether to list only LOCAL
type profiles or only PARTNER
type profiles. If
* not supplied in the request, the command lists all types of profiles.
*
LOCAL
type profiles or only PARTNER
type
* profiles. If not supplied in the request, the command lists all types of profiles.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ProfileType
*/
public DescribedProfile withProfileType(ProfileType profileType) {
this.profileType = profileType.toString();
return this;
}
/**
*
* The As2Id
is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the
* AS2-From
header for the AS2 messages sent from the partner. For outbound connectors, this is the
* AS2-To
header for the AS2 messages sent to the partner using the StartFileTransfer
API
* operation. This ID cannot include spaces.
*
As2Id
is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the
* AS2-From
header for the AS2 messages sent from the partner. For outbound connectors, this is
* the AS2-To
header for the AS2 messages sent to the partner using the
* StartFileTransfer
API operation. This ID cannot include spaces.
*/
public void setAs2Id(String as2Id) {
this.as2Id = as2Id;
}
/**
*
* The As2Id
is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the
* AS2-From
header for the AS2 messages sent from the partner. For outbound connectors, this is the
* AS2-To
header for the AS2 messages sent to the partner using the StartFileTransfer
API
* operation. This ID cannot include spaces.
*
As2Id
is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the
* AS2-From
header for the AS2 messages sent from the partner. For outbound connectors, this is
* the AS2-To
header for the AS2 messages sent to the partner using the
* StartFileTransfer
API operation. This ID cannot include spaces.
*/
public String getAs2Id() {
return this.as2Id;
}
/**
*
* The As2Id
is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the
* AS2-From
header for the AS2 messages sent from the partner. For outbound connectors, this is the
* AS2-To
header for the AS2 messages sent to the partner using the StartFileTransfer
API
* operation. This ID cannot include spaces.
*
As2Id
is the AS2-name, as defined in the RFC 4130. For inbound transfers, this is the
* AS2-From
header for the AS2 messages sent from the partner. For outbound connectors, this is
* the AS2-To
header for the AS2 messages sent to the partner using the
* StartFileTransfer
API operation. This ID cannot include spaces.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribedProfile withAs2Id(String as2Id) {
setAs2Id(as2Id);
return this;
}
/**
* * An array of identifiers for the imported certificates. You use this identifier for working with profiles and * partner profiles. *
* * @return An array of identifiers for the imported certificates. You use this identifier for working with profiles * and partner profiles. */ public java.util.List* An array of identifiers for the imported certificates. You use this identifier for working with profiles and * partner profiles. *
* * @param certificateIds * An array of identifiers for the imported certificates. You use this identifier for working with profiles * and partner profiles. */ public void setCertificateIds(java.util.Collection* An array of identifiers for the imported certificates. You use this identifier for working with profiles and * partner profiles. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setCertificateIds(java.util.Collection)} or {@link #withCertificateIds(java.util.Collection)} if you want * to override the existing values. *
* * @param certificateIds * An array of identifiers for the imported certificates. You use this identifier for working with profiles * and partner profiles. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedProfile withCertificateIds(String... certificateIds) { if (this.certificateIds == null) { setCertificateIds(new java.util.ArrayList* An array of identifiers for the imported certificates. You use this identifier for working with profiles and * partner profiles. *
* * @param certificateIds * An array of identifiers for the imported certificates. You use this identifier for working with profiles * and partner profiles. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedProfile withCertificateIds(java.util.Collection* Key-value pairs that can be used to group and search for profiles. *
* * @return Key-value pairs that can be used to group and search for profiles. */ public java.util.List* Key-value pairs that can be used to group and search for profiles. *
* * @param tags * Key-value pairs that can be used to group and search for profiles. */ public void setTags(java.util.Collection* Key-value pairs that can be used to group and search for profiles. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * Key-value pairs that can be used to group and search for profiles. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedProfile withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* Key-value pairs that can be used to group and search for profiles. *
* * @param tags * Key-value pairs that can be used to group and search for profiles. * @return Returns a reference to this object so that method calls can be chained together. */ public DescribedProfile withTags(java.util.Collection