001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.juneau.bean.mcp.v20260728;
018
019import org.apache.juneau.marshall.*;
020
021/**
022 * Declared argument for an MCP prompt.
023 */
024@Marshalled
025public class PromptArgument {
026
027   private String name;
028   private String description;
029   private Boolean required;
030
031   /**
032    * Argument name.
033    *
034    * @return The name, or {@code null} if not set.
035    */
036   public String getName() {
037      return name;
038   }
039
040   /**
041    * Sets the argument name.
042    *
043    * @param value The new value.  Can be <jk>null</jk> to unset the property.
044    * @return This object (for method chaining).
045    */
046   public PromptArgument setName(String value) {
047      name = value;
048      return this;
049   }
050
051   /**
052    * Argument description.
053    *
054    * @return The description, or {@code null} if not set.
055    */
056   public String getDescription() {
057      return description;
058   }
059
060   /**
061    * Sets the description.
062    *
063    * @param value The new value.  Can be <jk>null</jk> to unset the property.
064    * @return This object (for method chaining).
065    */
066   public PromptArgument setDescription(String value) {
067      description = value;
068      return this;
069   }
070
071   /**
072    * Whether the argument is required.
073    *
074    * @return The flag, or {@code null} if not set.
075    */
076   public Boolean getRequired() {
077      return required;
078   }
079
080   /**
081    * Sets the required flag.
082    *
083    * @param value The new value.  Can be <jk>null</jk> to unset the property.
084    * @return This object (for method chaining).
085    */
086   public PromptArgument setRequired(Boolean value) {
087      required = value;
088      return this;
089   }
090}